Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status code 403 #129

Open
rsjane opened this issue Mar 19, 2024 · 5 comments
Open

Status code 403 #129

rsjane opened this issue Mar 19, 2024 · 5 comments

Comments

@rsjane
Copy link

rsjane commented Mar 19, 2024

I found the code online last Friday, and have been playing with it. It worked fine yesterday, however, today 3/19/2024 1400 EST, when I run the code, I receive the following error message when I attempt to assign a specific location. If I had to guess it has something to do with licensing, API key definition embedded within the code that I did not change? Wondering if the author could advise.

Status code 403 from https://nominatim.openstreetmap.org/search: ERROR - 403 Client Error: Forbidden for url: https://nominatim.openstreetmap.org/search?q=Berlin&format=jsonv2&addressdetails=1&limit=1

@jnordberg1
Copy link

I am having the same issue

@BrushXue
Copy link

I'm having the same issue on a Windows computer. However on macOS everything is still fine.

@NicholasCG
Copy link

I have run into the same issue.

@Gabrielz-Muller
Copy link

I have the same issue

@shengrenTWR
Copy link

My solution may be crude, but it works for me. Manually uninstall the geocoder and git clone it from here. Place the folder in the same path as map_widget.py. Then add the following function in the class OsmQuery(MultipleResultsQuery) in osm.py
def _build_headers(self, provider_key, **kwargs): """Will be overridden according to the targetted web service""" return {"User-Agent": 'My User Agent 1.0'}
This should be work.
Reference: https://help.openstreetmap.org/questions/74205/nominatim-usage-policy-http-referers-and-user-agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants