-
Notifications
You must be signed in to change notification settings - Fork 9
Connection freeze after a while #249
Comments
Hi @aseyfpour - Thank you for reporting the issue! It's quite likely to be a Streamr Network issue as we've been experiencing problems with resends lately. We're rewriting this core resend logic and it's a large engineering effort that is more a less complete, but requiring some testing. Instead of using websockets, the client will use a classic REST request for resends so it should be far more stable. I would say this issue will resolve in 1-3 weeks and I will update you when the client update arrives. |
Thank you @fonty1. |
@aseyfpour while I think it's the resend issue I spoke to in the last message, I forgot to mention you should double check you're running the latest version - as there was a memleak fixed in the latest, https://github.com/streamr-dev/streamr-client-javascript/releases/tag/v5.2.1 |
I also mentioned these network issues when I was verifying @timoxley patch. |
@fonty1 Is there any update on this topic? |
Hey @aseyfpour, we're finishing up internal testing of the resend upgrade. Fingers crossed for a release this week, thanks for your patience with this one! |
Hi @aseyfpour could you try your resends now? The resend data brokers have been updated. If you have issues, can you be so kind as to report the behaviour and any logs you get. Thanks! |
Hi @fonty1, Sure. I will do that. |
@aseyfpour - please use v5.4.1 but the main change was on the backend, so it hopefully fixed in older versions as well. |
@fonty1 - First try result: It fetches about 17K messages in 45 minutes, then it gets stuck at Subscribe again. I didn't catch any exceptions or successful messages in my code. I think its Promise didn't resolve or was rejected by the client.
When I restart my app, it started to fetch messages again from breaking point (faster than before, 120K messages in 25 minutes). |
@aseyfpour - Argh! Sorry to hear that. Can you share the streamId with me? Either here or to matthew.fontana@streamr.network. We can investigate the logs from there to see what went wrong. |
@fonty1 - here is my stream id: 94ylzZvOTdqf_kHFkLT2Aw |
Hey, you could try to directly request the data from this HTTP endpoint
replacing <START_TIME> and <END_TIME> with Unix milliseconds since EPOCH times. You also need to pass the following authentication header with the request:
The <SESSION_TOKEN> for your wallet can be obtained with streamr-client-javascript by calling |
While the workaround above should work for the time being, we're also investigating the original issue why the resends over websocket get corrupted. Could be an issue with the websocket library we're using. |
Sure, I will feedback to you soon. |
@harbu The Rest API is OK. Its connection slows down sometimes but it is much reliable than the Streamr client. |
Any update on this? |
@aseyfpour - It's been a bit of a rabbit hole as multiple dependencies have needed to be switched out, I'll see about getting an update from the Network team this week about how much work is left before we can make a new production release. |
@aseyfpour - could you try again now? We've made some very heavy updates to the broker that are very fresh, but may solve the issue. Please give it a go. |
Hi Dear Streamrs
I am trying to fetch a large amount of data from about 9 months ago. I developed an app that subscribes to a stream with resent option.
On the first try, I used a wide timeframe for the resent option (from: 9 months ago timestamp, to: now) but it freezes after a while and it doesn't receive any message or throw an exception.
So on the second try, I used a loop to subscribe on a narrow timeframe (an hour), after that It fetches all the messages in this timeframe I will unsubscribe this timeframe and will subscribe to the next timeframe. But in this scenario, it freezes too.
I tried these on different networks and different devices, the result is the same as each other. It is not happening at a specific time or after some amount of messages, it is completely random.
How can I help you to investigate this issue?
The text was updated successfully, but these errors were encountered: