GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
JSON API Curiousity  XML
Forum Index -> General
Author Message

Joined: 14/10/2020 22:09:29
Messages: 6

It's not a real problem, as I handle both cases but I'm curious as to what causes this.

When requesting Children Items

For some Items I get an exception:
{"status": {"message": "No Result Found", "value": 15}}

For other very similar Items using the very same API I'll actually get a JSON response:

What determines whether one gets a Zero Item response vs an Exception?

The only issue I have is that I cache the data locally, but NOT the exceptions, so the next time a query is run for the same data my code will retry the data that gives exceptions since there is no item in the cache.

Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team