You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import http.requests.*;
public void setup()
{
size(400,400);
smooth();
GetRequest get = new GetRequest("https://api.typeform.com/forms/DxlTiK/responses");
get.addHeader("Authorization", "Bearer {MyTokenCode}");
get.send(); // program will wait untill the request is completed
println("response: " + get.getContent());
JSONObject response = parseJSONObject(get.getContent());
println("status: " + response.getString("status"));
JSONArray boxes = response.getJSONArray("data");
}
I get following error message:
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
response: null
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at http.requests.GetRequest.send(Unknown Source)
at sketch_20190114_Song_for_Film_.setup(sketch_20190114_Song_for_Film_.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:2361)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Thread.java:745)
The text was updated successfully, but these errors were encountered:
yireh
changed the title
HTTPS GET "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" while using typeform API
HTTPS GET "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" while using typeform response API
Jan 14, 2019
When I tried
I get following error message:
The text was updated successfully, but these errors were encountered: