Connection timed out with file_get_contents

  • 4
  • Problem
  • Updated 5 years ago
Hi,

during multiple days (from 7th to 11th of august) I got a lot of these errors for multiple PWS :
"Warning: file_get_contents(http://api.wunderground.com/api/MYAPI...): failed to open stream: Connection timed out"

I also got this error for :
- KCASEBAS34
- IAUDENAR2
- KCAOAKVI6

Is this an issue on your side or on my side?
Should I specify a different connection timeout than the default one of PHP?
Should I use CURL instead of file_get_contents? (in your examples http://www.wunderground.com/weather/a... you are using file_get_contents)

Thanks,

Benjamin
Photo of fruition

fruition

  • 6 Posts
  • 1 Reply Like
  • unsure

Posted 5 years ago

  • 4
Photo of oringe

oringe

  • 15 Posts
  • 0 Reply Likes
I've also noticed a general decrease in the API response since August 7th. In addition every 30 or so queries seem to time out for me when performing a few hundred queries.

Does anyone on the Weather Underground know of any issues?
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
We are looking into these issues as well.
Photo of geotextme

geotextme

  • 4 Posts
  • 0 Reply Likes
I can confirm the same issue since August 8 -- a high number of time outs and "error connecting to remote server".

When I contacted Wunderground support they pretended like there was no problem.

We had an identical scenario in February that was ultimately an admitted load balance issue at Wunderground.
Photo of freshplum

freshplum

  • 2 Posts
  • 0 Reply Likes
Also getting hundreds of timeouts per day (with a 2 second threshold).
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
I don't blame you for being frustrated, but we certainly aren't pretending there isn't a problem. We've just been trying to reproduce it and resolve the issue.

We made some changes here -- is it working better for you now?
Photo of freshplum

freshplum

  • 2 Posts
  • 0 Reply Likes
We are getting a timeout about once per minute.
Photo of fruition

fruition

  • 6 Posts
  • 1 Reply Like
I got a connection refused a few minutes ago and the last timeout was 16hours ago.
Photo of oringe

oringe

  • 15 Posts
  • 0 Reply Likes
am getting quite a few timeouts as of now, about 1 out of 4 request are timing out. i have a 2 second timeout.
Photo of fruition

fruition

  • 6 Posts
  • 1 Reply Like
Is it fixed now?
Photo of SterckDevelopment

SterckDevelopment

  • 3 Posts
  • 0 Reply Likes
It's started again round 13:00 (Netherlands)
Photo of InstaWeather

InstaWeather

  • 7 Posts
  • 0 Reply Likes
We are getting reports from users about connection timeouts, constantly. I would say only 25% of queries are OK.
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
We had a brief issue that impacted a few users this morning, but it should be resolved now. Please let me know if you're still seeing timeouts.