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)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • 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)
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.