com.sparkpost.exception.SparkPostErrorServerResponseException: Unexpected server response ContentType(null) from https://api.sparkpost.com/api/v1/URI [scheme=null, userInfo=null, host=null, port=-1, path=transmissions, queryParams=[num_rcpt_errors=0], fragment=null] contentLength(0)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Vaibhav Jain
, 1 year ago
Unexpected server response ContentType(null) from https://api.sparkpost.com/api/v1/URI [scheme=null, userInfo=null, host=null, port=-1, path=transmissions, queryParams=[num_rcpt_errors=0], fragment=null] contentLength(0)
com.sparkpost.exception.SparkPostErrorServerResponseException: Unexpected server response ContentType(null) from https://api.sparkpost.com/api/v1/URI [scheme=null, userInfo=null, host=null, port=-1, path=transmissions, queryParams=[num_rcpt_errors=0], fragment=null] contentLength(0)
at com.sparkpost.transport.RestConnection.receiveErrorResponse(RestConnection.java:326)
at com.sparkpost.transport.RestConnection.receiveResponse(RestConnection.java:235)
at com.sparkpost.transport.RestConnection.doHttpMethod(RestConnection.java:390)
at com.sparkpost.transport.RestConnection.post(RestConnection.java:433)
at com.sparkpost.resources.ResourceTransmissions.createTransmission(ResourceTransmissions.java:40)
at com.sparkpost.resources.ResourceTransmissions.create(ResourceTransmissions.java:27)
at com.sparkpost.Client.sendMessage(Client.java:115)
at com.sparkpost.Client.sendMessage(Client.java:90)
at mail.SendMail$1.run(SendMail.java:60)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.