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

OSM auth is not working #271

Open
emi420 opened this issue Aug 28, 2024 · 0 comments
Open

OSM auth is not working #271

emi420 opened this issue Aug 28, 2024 · 0 comments
Assignees

Comments

@emi420
Copy link
Contributor

emi420 commented Aug 28, 2024

Describe the bug

The command:

python raw_backend --insert --replication --source https://download.geofabrik.de/europe/turkey-latest.osm.pbf --country 127

Is not working:

login.RaiseError: POST https://osm-internal.download.geofabrik.de/get_cookie?action=request_token, received HTTP status code 400 but expected 200

It seems that this is because auth changed to OAuth 2 in GeoFabrik

geofabrik/sendfile_osm_oauth_protector@c778f25#diff-64ec7b21a81c46ff73694c20126f98b40907beeae2a7fce8951ba9f4374a190aR29

And the request_token action is not available anymore:

$ curl -X POST "https://osm-internal.download.geofabrik.de/get_cookie?action=request_token"

The requested 'action' and/or HTTP method is not supported.%
@emi420 emi420 self-assigned this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant