Skip to content

fix: Replace httpx async client with non blocking sync request#7191

Closed
prabinoid wants to merge 1 commit intodevelopfrom
fix/async-client-refactor
Closed

fix: Replace httpx async client with non blocking sync request#7191
prabinoid wants to merge 1 commit intodevelopfrom
fix/async-client-refactor

Conversation

@prabinoid
Copy link
Copy Markdown
Collaborator

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ❓ Other (please specify)

Related Issue

#7188

Describe this PR

The request made to osm user detail api (example) returns 429 Too many requests when called from httpx AsyncClient.

Made the request using requests library as non blocking to prevent blocking of the event loop during execution.

Alternative Approaches Considered

Tried to delay the request with 3 seconds sleep between the requests to check if rate limiting caused this issue, the issue still persisted.

Tried User-Agent in httpx async client, still the issue remained same.

Need to figure out the root of the issue, whether it is rate limiting or something else.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 9, 2026

@prabinoid
Copy link
Copy Markdown
Collaborator Author

Fixed through #7194.

@prabinoid prabinoid closed this Mar 11, 2026
@spwoodcock spwoodcock deleted the fix/async-client-refactor 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.

1 participant