Skip to content

Conversation

@wscourge
Copy link
Contributor

@wscourge wscourge commented Jan 29, 2026

By default the NPM superagent http library does not timeout, and it waits indefinitely for a response.

I configured it to timeout after 30 seconds (the same amount that all other SDKs do) and retry on the timeout error.

@wscourge wscourge requested a review from Copilot January 29, 2026 10:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds timeout and retry-on-timeout functionality to HTTP requests made via the superagent library to prevent indefinite waiting for responses.

Changes:

  • Added timeout configuration with 30-second response timeout and 120-second deadline
  • Added ECONNABORTED error to the list of retriable errors to handle timeout scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wscourge wscourge merged commit a8fae7e into main Jan 29, 2026
4 checks passed
@wscourge wscourge deleted the wiktor/ome-434-api-issue-with-chartmogul-node-v380 branch January 29, 2026 12:43
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

Successfully merging this pull request may close these issues.

3 participants