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)

Stack Overflow | Vaibhav Jain | 5 months ago
  1. 0

    SparkPost send mail exception

    Stack Overflow | 5 months ago | Vaibhav Jain
    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)

    Root Cause Analysis

    1. 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()
    2. com.sparkpost.transport
      RestConnection.post
      1. com.sparkpost.transport.RestConnection.receiveErrorResponse(RestConnection.java:326)
      2. com.sparkpost.transport.RestConnection.receiveResponse(RestConnection.java:235)
      3. com.sparkpost.transport.RestConnection.doHttpMethod(RestConnection.java:390)
      4. com.sparkpost.transport.RestConnection.post(RestConnection.java:433)
      4 frames
    3. com.sparkpost.resources
      ResourceTransmissions.create
      1. com.sparkpost.resources.ResourceTransmissions.createTransmission(ResourceTransmissions.java:40)
      2. com.sparkpost.resources.ResourceTransmissions.create(ResourceTransmissions.java:27)
      2 frames
    4. com.sparkpost
      Client.sendMessage
      1. com.sparkpost.Client.sendMessage(Client.java:115)
      2. com.sparkpost.Client.sendMessage(Client.java:90)
      2 frames
    5. mail
      SendMail$1.run
      1. mail.SendMail$1.run(SendMail.java:60)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame