error code list

  • 1
  • Question
  • Updated 3 years ago
Why are there no list of error codes and none of the questions about them answered?
Photo of Derek

Derek

  • 5 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 Reply Likes
Its just not something we ever put together.
Photo of Derek

Derek

  • 5 Posts
  • 0 Reply Likes
ok, well, at least that is an answer. So what do i get back if i ran out of raindrops?
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 Reply Likes
Here is a list of error codes, it may be incomplete

missingkey : you must supply a key
keynotfound : this key does not exist
invalidkey : this key is not valid due to exceeding rate plan
invalidfeature : a requested feature is not valid due to exceeding rate plan
querynotfound : No cities match your search query
plannerwithhistory : Cannot load Travel Planner and History in the same request
invalidquery : you must supply a location query
imageload : failed to load the image
radarwithothers : Cannot load radar in the same request as other features
radarargs: you must supply query arguments for the radar image.
invalidformat : you must supply a valid output format
invalidimage : image output is only available for certain features, see documentation
Photo of Derek

Derek

  • 5 Posts
  • 0 Reply Likes
Thanks!
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 Reply Likes
and to answer your question, you would get an invalidkey error for exceeding your rate plan if you run out of raindrops
Photo of Derek

Derek

  • 5 Posts
  • 0 Reply Likes
anyone reading this wants to know what the return error looks like in json...

{
"response": {
"version": "0.1",
"termsofService": "http://www.wunderground.com/weather/a...",
"features": {
"yesterday": 1
},
"error": {
"type": "querynotfound",
"description": "No cities match your search query"
}
}
}