Opened 4 years ago

Closed 4 years ago

#5357 closed defect (fixed)

Reverse address lookup no response

Reported by: WayneDRussell Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: reverse?format=json Cc:

Description

Change History (12)

comment:1 Changed 4 years ago by Tom Hughes

That probably means you have ignored all the error codes telling you that you are abusing it for long enough that an IP block has been added against your IP address.

comment:2 Changed 4 years ago by Tom Hughes

Component: apinominatim
Owner: changed from rails-dev@… to geocoding@…

comment:3 Changed 4 years ago by mtmail

Hi,

The blocking of IP addresses is automated. It will be released within 24h. See http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy

comment:4 Changed 4 years ago by Tom Hughes

But once you are unblocked pay attention to the "429 Too Many Requests" responses and slow down when you get them!

comment:5 Changed 4 years ago by WayneDRussell

Hi, Thanks for the information.

What is the best way to test for this error?

Wayne

comment:6 Changed 4 years ago by Tom Hughes

Well it's the HTTP status returned by the request, so just check that in the normal way in your client.

comment:7 Changed 4 years ago by WayneDRussell

Hi, I am currently using: $json = @file_get_contents($url);

I will change this to: $json = file_get_contents($url); if ($json=='429 Too Many Requests'){

return $json;

}

Will this change enable me to return the error for reporting purposes?

What other errors need to be considered in the request?

Wayne

Last edited 4 years ago by WayneDRussell (previous) (diff)

comment:8 Changed 4 years ago by Tom Hughes

No, but as I don't know what "file_get_contents" does I can't help any further. You need to ask a programmer.

The "429" is metadata, not contents though, so you will need to look at the response object before extracting the content from it.

comment:9 Changed 4 years ago by WayneDRussell

Hi,

I can now detect when I receive 'HTTP/1.1 429 Too Many Requests'

When will I be able to send new requests and not receive the error?

Wayne

comment:10 Changed 4 years ago by Tom Hughes

Probably when you obey http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy... To start with are you sending a proper user agent with your requests?

comment:11 Changed 4 years ago by WayneDRussell

Hi,

This is now working correctly.

Thank you for your assistance.

Wayne

comment:12 Changed 4 years ago by Tom Hughes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.