Hello,
I'm having huge issues processing a JSON weather feed.
When I type the following directly into any browser, the JSON feed works perfect 100% of the time and is instant. The x's are my personal developers key, so I can't really post that.
https://api.forecast.io/forecast/xxxxxxxxxxxxxxxxx/52.4181385,-1.7744557
I use the following to get the feed, but then JobDone can can take a long time fetching the feed.
GetWeatherJSON.Download("https://api.forecast.io/forecast/xxxxxxxxxxxxxxxxx/" & Latitude & "," & Longitude)
The problem is that about 30% of the time, the JobDone Sub shows the following errors.
Errors collected so far:
Error: java.net.SocketTimeoutException: Read timed out
Error: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
Error: java.net.UnknownHostException: Unable to resolve host "api.forecast.io": No address associated with hostname
Error: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
The main problem is that when the errors occur, I can press refresh on the browser and see the feed instantly. Yet my app is constantly trying at the exact same time and randomly bringing back one of the above errors.
My Android devices and development laptop are on the same 100Mbps internet connection.
Thank you
I'm having huge issues processing a JSON weather feed.
When I type the following directly into any browser, the JSON feed works perfect 100% of the time and is instant. The x's are my personal developers key, so I can't really post that.
https://api.forecast.io/forecast/xxxxxxxxxxxxxxxxx/52.4181385,-1.7744557
I use the following to get the feed, but then JobDone can can take a long time fetching the feed.
GetWeatherJSON.Download("https://api.forecast.io/forecast/xxxxxxxxxxxxxxxxx/" & Latitude & "," & Longitude)
The problem is that about 30% of the time, the JobDone Sub shows the following errors.
Errors collected so far:
Error: java.net.SocketTimeoutException: Read timed out
Error: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
Error: java.net.UnknownHostException: Unable to resolve host "api.forecast.io": No address associated with hostname
Error: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
The main problem is that when the errors occur, I can press refresh on the browser and see the feed instantly. Yet my app is constantly trying at the exact same time and randomly bringing back one of the above errors.
My Android devices and development laptop are on the same 100Mbps internet connection.
Thank you
Last edited: