Skip to content

Add User-Agent header for OSM stats request#7194

Merged
ramyaragupathy merged 3 commits intodevelopfrom
hotfix/user-agent-osm-request
Mar 11, 2026
Merged

Add User-Agent header for OSM stats request#7194
ramyaragupathy merged 3 commits intodevelopfrom
hotfix/user-agent-osm-request

Conversation

@emi420
Copy link
Copy Markdown
Collaborator

@emi420 emi420 commented Mar 10, 2026

What type of PR is this?

  • 🐛 Bug Fix

Fixes #7196

Describe this PR

This PR adds an User-Agent header with the syntax User-Agent: <product> / <product-version> <comment> as it's documented on MDN

I already had a quick talk with a member of the OSM Sysadmin Team to prevent blocking from their side, so the HTTP error "429 too many request" would be fixed.

Please check if the API's URL (https://tasking-manager-production-api.hotosm.org) is ok like this or it should be an env variable or something else. Same with the API's version (2.0)

Additional information: The OpenStreetMap API requires a User-Agent (ref)

@sonarqubecloud
Copy link
Copy Markdown

@ramyaragupathy ramyaragupathy merged commit 8e3e092 into develop Mar 11, 2026
19 of 20 checks passed
@spwoodcock spwoodcock deleted the hotfix/user-agent-osm-request branch March 11, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supply user agent information while making external requests

3 participants