Skip to content

OSM auth is not working #271

Description

@emi420

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.%

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions