Jump to content

Exception while GET request to HTTPS site


thmuelle

Recommended Posts

Hi,

 

i'm facing this problem since yesterday (it has run smoothly around 3-4 weeks now).

 

In my servelt i send a get request to a server via HTTPS.

jsonResponse = Request.Get(String.format("https://www.digistore24.com/api/call/<secret api key>/json/getPurchase?purchase_id=%s", "79MMBALX"))
                        .connectTimeout(5000)
                        .socketTimeout(5000)
                        .execute().returnContent().asString();

and get this exception

 

Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

 

Since i can use this Servlet on my local computer without problems i assume that the configuration of the tomcat got corrupt.

 

The servlet is thmuelle_licence if you want to look at your tomcat logs.

 

If you want to check if the changes are effecting the servlet you can use the following call to check (you will get the correct response or a response with the stacktrace).

 

 

http://tm-tradingzone.com/licence/api/call/checkDigistore

 

Since i use the servlet for production i would appreciate if you can fix it very quickly.

 

Thank you in advance.

 

Kind regards

Th. Müller

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...