missingkey

  • 1
  • Problem
  • Updated 2 years ago
It seems like 1 in 100 calls to the weather underground api, I'm not able to get the requested ambient temperature.  So I added extra loging, and I discovered that periodically the api is responded with missingkey.  So around 99% of the time the key works, but 1% of the time the same key is reported as missing.  Do you have any suggestions for this issue.  Below is the url I use to call weather underground, and the response.


http://api.wunderground.com/api/<key>/conditions/q/<latitude>,<longitude>.xml

 <response>

                <version>0.1</version>

                <termsofService>http://www.wunderground.com/weather/api/d/terms.html</termsofService>

                <features>

                </features>

                                <error>

                                <type>missingkey</type>

                                <description>you must supply a key</description>

                </error>

</response>

Photo of TaylorHamilton

TaylorHamilton

  • 4 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Grant Mercer

Grant Mercer

  • 2 Posts
  • 0 Reply Likes
That is probably because you are going over your API limit, the missing key error is what I get when I exceed the calls allowed per minute.
Photo of Antonio

Antonio

  • 1 Post
  • 0 Reply Likes
That should return a 429 too many requests so that a client can back off. Exceeding a rate limit or an expired key are two very different things that require different corrective actions.