REST Countries v1

फ़्री
द्वारा apilayer | अपडेट किया गया un mese fa | Data
लोकप्रियता

0.5 / 10

लेटेंसी

36ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

cant connect Caused by: java.net.SocketTimeoutException: Read timed out

Rapid account: Jcombras
jcombras
8 anni fa

Hi,

may i ask why im getting Caused by: java.net.SocketTimeoutException: Read timed out?

this is when is call https://restcountries-v1.p.mashape.com/all"

best regards,
jason

Rapid account: Fayder
fayder Commented 8 anni fa

Hello. I do not have an answer for you. I tried myself, using unirest as instructed in the Mashape documentation (You might need a different value for “XMashape-Key”)

<pre><code>
HttpResponse<JsonNode> response = Unirest.get(“https://restcountries-v1.p.mashape.com/all”)
.header(“X-Mashape-Key”, “78mZ1stwA2msh8ifjBMAo1ltPsjyp1HQk8JjsnUG6XNABnfdO8”)
.header(“Accept”, “application/json”)
.asJson();
</code></pre>

This worked as expected. Check if you have any firewall blocking requests made from Java. I’m sorry if I can’t be that helpful

Fayder

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें