Skip to content

FFM-4204 Fallback to polling if stream has an error #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 24, 2023
Merged

Conversation

erdirowlands
Copy link
Contributor

@erdirowlands erdirowlands commented Feb 24, 2023

What

Previously, the SDK would not fall back to polling if there was an error in the stream. This was caused by a number of issues

  • The SDK would not signal the client to do this on StreamEvent.ERROR events
  • The eventsource library had a number of issues and so we have forked it and put our own fixes in there. See PR for details. The SDK uses the new #harness.io/event NPM package which is pending publication to NPM. ** BUILD WILL FAIL UNTIL PACKAGE PUBLISHED **

Testing

Manual. Extensive.

  • See testing on the above PR. In all of those scenarios, the SDK would fall back to polling.

@swarmia
Copy link

swarmia bot commented Feb 24, 2023

package.json Outdated
@@ -64,7 +63,7 @@
"dependencies": {
"axios": "^0.22.0",
"axios-retry": "^3.2.0",
"eventsource": "^1.1.2",
"@harness/event": "file:../eventsource",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be updated once the package is published to NPM. Feel free to mark the PR as requested changes until this is done, along with any other required changes.

@erdirowlands erdirowlands merged commit 050e121 into main Feb 24, 2023
@erdirowlands erdirowlands deleted the FFM-4204 branch February 24, 2023 23:57
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