Every time I try to make an API request with my application running on WebSphere, I get this in my logs when trying to log the error:
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://cs28.salesforce.com/...
at sun.reflect.GeneratedConstructorAccessor144.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:58)
at java.lang.reflect.Constructor.newInstance(Constructor.java:542)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1688)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1686)
at java.security.AccessController.doPrivileged(AccessController.java:416)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1684)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1257)
at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
... 28 more
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://cs28.salesforce.com/...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1639)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at com.ibm.net.ssl.www2.protocol.https.b.getResponseCode(b.java:73)
I only get a 500 error when making the API request through websphere. Postman and other services make the request successfully, so I'm pretty stumped. Any thoughts?