ngx-sse-client icon indicating copy to clipboard operation
ngx-sse-client copied to clipboard

Error at the end of stream

Open tkeer opened this issue 2 years ago • 4 comments

Can you please let me know why does it throw an error when stream is completed.

And seems like nothing is being passed to errorEvent function, is it a bug? https://github.com/rubinhos/ngx-sse-client/blob/a5f60e6a240012df1a852852ab4674e50530f8a1/lib/projects/ngx-sse-client/src/lib/sse-client.service.ts#L121

tkeer avatar Jan 10 '23 12:01 tkeer

Same issue for me when I do POST request.

aresot avatar Mar 29 '23 16:03 aresot

Hey @tkeer and @aresot , sorry for my delay in answering. As I do remember, this is an EventSource behaviour. I just reproduced in the service. On the first version, this was a EventSource lookalike for Angular, maybe this isn't necessary anymore.

rubinhos avatar Mar 30 '23 17:03 rubinhos

hi @rubinhos, any updates on it?

conrezo avatar Aug 06 '24 15:08 conrezo

hi @rubinhos, any updates on it?

cc @marcospds

rubinhos avatar Aug 18 '24 21:08 rubinhos

I am putting in a fix for this particular issue. though error handling in general is not ideally setup.

A server timeout will still send the empty event.

krismeister avatar Mar 04 '25 04:03 krismeister