Skip to content

Fixed the function fetchWithRetries from streaming-client.js#24

Open
scgreenhalgh wants to merge 2 commits intode-id:mainfrom
scgreenhalgh:main
Open

Fixed the function fetchWithRetries from streaming-client.js#24
scgreenhalgh wants to merge 2 commits intode-id:mainfrom
scgreenhalgh:main

Conversation

@scgreenhalgh
Copy link

I fixed the function fetchWithRetries to correctly retry if there is also a response from the API that is not in the status code 2XX range. Previously, it would not retry if it returned any status code and only caught connection errors/network errors.

…so a response from the API which is not in the status code 2XX range. Previously it would not retry if it returned any status code and only caught connection errors/network errors.
Copy link

@lusoul232 lusoul232 left a comment

Choose a reason for hiding this comment

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

image

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.

2 participants