Skip to content
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

Raise an error if SSE connection fails. #8

Open
chainhead opened this issue Aug 4, 2024 · 2 comments
Open

Raise an error if SSE connection fails. #8

chainhead opened this issue Aug 4, 2024 · 2 comments

Comments

@chainhead
Copy link

Suppose the HTTP SSE is not available. I want a connection error to be raised so that it in can be handled by a Catch node. How can this be achieved?

@bartbutenaers
Copy link
Owner

Hi @chainhead,

Sorry for the delay! I am running low on free time...

I have added a fix that should make the errors catchable, so you should now be able to catch errors with a Catch node.

However I don't use this node myself. Just created it at the time being to do someone a favor. Therefore it would be nice if you could install my fix from Github and test it, before I publish it on NPM.

When you have Git installed, you should be able to install this node from this Github repo directly, by executing following command within your .node-red folder:

npm install bartbutenaers/node-red-contrib-sse-client

Please me know if it fits your needs, and then I will install it on NPM.
Thanks!

@chainhead
Copy link
Author

Seeing this message only now, @bartbutenaers Hopefully, over this weekend.

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

No branches or pull requests

2 participants