# Message: RPC Subscription stream should be infinite

**URL:** <https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797>\
**Category:** Q&A/Troubleshooting\
**Created:** [December 22, 2023, 9:23pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797 "2023-12-22T21:23:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [December 22, 2023, 9:23pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/1 "2023-12-22T21:23:47Z")

</div>

I am running avail light client on ubuntu 22.04 amd64 architecture LC version is v1.7.4. My client crashed like this:

```auto
2023-12-15T10:33:49.633435Z INFO avail_light::network: Cells fetched from DHT block_number=14448 cells_total=8 cells_fetched=0 cells_verified=0 fetch_elapsed=10.002151687s proof_verification_elapsed=203.551µs
2023-12-15T10:33:49.754989Z INFO avail_light::network: Cells fetched from RPC block_number=14448 cells_total=8 cells_fetched=8 cells_verified=8 fetch_elapsed=110.676771ms proof_verification_elapsed=10.789979ms
2023-12-15T10:33:49.755207Z INFO avail_light::sync_client: App index Ok(DataLookup { index: [(AppId(0), 0..1)] }) block_number=14449
2023-12-15T10:33:49.755222Z INFO avail_light::sync_client: Synced block header block_number=14449 elapsed=16.831µs
2023-12-15T10:33:49.755257Z INFO avail_light::api::v2: Message published to clients topic=ConfidenceAchieved published=0 failed=0
2023-12-15T10:33:50.851187Z INFO avail_light::network: Cells fetched from DHT block_number=14449 cells_total=8 cells_fetched=0 cells_verified=0 fetch_elapsed=1.095730806s proof_verification_elapsed=213.59µs
2023-12-15T10:33:50.946020Z INFO avail_light::network: Cells fetched from RPC block_number=14449 cells_total=8 cells_fetched=8 cells_verified=8 fetch_elapsed=83.210699ms proof_verification_elapsed=11.595919ms
2023-12-15T10:33:50.950271Z INFO avail_light::sync_client: App index Ok(DataLookup { index: [(AppId(0), 0..12)] }) block_number=14450
2023-12-15T10:33:50.950282Z INFO avail_light::sync_client: Synced block header block_number=14450 elapsed=12.393µs
2023-12-15T10:33:50.950312Z INFO avail_light::api::v2: Message published to clients topic=ConfidenceAchieved published=0 failed=0
2023-12-15T10:33:50.958860Z INFO avail_light::network::p2p::event_loop: Cell upload success rate for block 14448: 8/8. Duration: 1
2023-12-15T10:33:52.046668Z INFO avail_light::network::p2p::event_loop: Cell upload success rate for block 14449: 8/8. Duration: 1
The application panicked (crashed).
Message: RPC Subscription stream should be infinite
Location: /root/avail-light/src/network/rpc/event_loop.rs:217

```

My LC was syncing from block 0. I have also created a github issue which includes the crash report too. Hope this helps.

> <https://github.com/availproject/avail-light/issues/388>
>
> I am running avail light client on ubuntu 22.04 amd64 architecture LC version is… v1.7.4. My client crashed like this:
> 
> \`\`\`
> 2023-12-15T10:33:49.633435Z INFO avail\_light::network: Cells fetched from DHT block\_number=14448 cells\_total=8 cells\_fetched=0 cells\_verified=0 fetch\_elapsed=10.002151687s proof\_verification\_elapsed=203.551µs
> 2023-12-15T10:33:49.754989Z INFO avail\_light::network: Cells fetched from RPC block\_number=14448 cells\_total=8 cells\_fetched=8 cells\_verified=8 fetch\_elapsed=110.676771ms proof\_verification\_elapsed=10.789979ms
> 2023-12-15T10:33:49.755207Z INFO avail\_light::sync\_client: App index Ok(DataLookup { index: \[(AppId(0), 0..1)\] }) block\_number=14449
> 2023-12-15T10:33:49.755222Z INFO avail\_light::sync\_client: Synced block header block\_number=14449 elapsed=16.831µs
> 2023-12-15T10:33:49.755257Z INFO avail\_light::api::v2: Message published to clients topic=ConfidenceAchieved published=0 failed=0
> 2023-12-15T10:33:50.851187Z INFO avail\_light::network: Cells fetched from DHT block\_number=14449 cells\_total=8 cells\_fetched=0 cells\_verified=0 fetch\_elapsed=1.095730806s proof\_verification\_elapsed=213.59µs
> 2023-12-15T10:33:50.946020Z INFO avail\_light::network: Cells fetched from RPC block\_number=14449 cells\_total=8 cells\_fetched=8 cells\_verified=8 fetch\_elapsed=83.210699ms proof\_verification\_elapsed=11.595919ms
> 2023-12-15T10:33:50.950271Z INFO avail\_light::sync\_client: App index Ok(DataLookup { index: \[(AppId(0), 0..12)\] }) block\_number=14450
> 2023-12-15T10:33:50.950282Z INFO avail\_light::sync\_client: Synced block header block\_number=14450 elapsed=12.393µs
> 2023-12-15T10:33:50.950312Z INFO avail\_light::api::v2: Message published to clients topic=ConfidenceAchieved published=0 failed=0
> 2023-12-15T10:33:50.958860Z INFO avail\_light::network::p2p::event\_loop: Cell upload success rate for block 14448: 8/8. Duration: 1
> 2023-12-15T10:33:52.046668Z INFO avail\_light::network::p2p::event\_loop: Cell upload success rate for block 14449: 8/8. Duration: 1
> The application panicked (crashed).
> Message: RPC Subscription stream should be infinite
> Location: /root/avail-light/src/network/rpc/event\_loop.rs:217
> \`\`\`
> 
> My LC was syncing from block 0. I am adding the generated crash report. Hope this helps.
> \[report-ea65bb3d-8043-4b67-8227-2058fd94416f.toml.zip\](https://github.com/availproject/avail-light/files/13685117/report-ea65bb3d-8043-4b67-8227-2058fd94416f.toml.zip)
> 
> To communicate if needed:
> Discord: nirnaeth.
> E-mail: nirnaeth@zohomail.eu

---

<div class="post-metadata">

**Author:** ![AstroNodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/astronodes/32/367_2.png) [@AstroNodes](https://forum.availproject.org/u/AstroNodes)\
**Post date:** [December 23, 2023, 12:48am UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/2 "2023-12-23T00:48:12Z")

</div>

I’m not sure but it could be about your bandwith capacity

---

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [December 26, 2023, 8:08pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/3 "2023-12-26T20:08:29Z")

</div>

Hmm how can I confirm this. The machines is dedicated one and another node runs with different port communications. I dont think that they are conflicting each other.

---

<div class="post-metadata">

**Author:** ![AstroNodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/astronodes/32/367_2.png) [@AstroNodes](https://forum.availproject.org/u/AstroNodes)\
**Post date:** [December 26, 2023, 8:16pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/4 "2023-12-26T20:16:37Z")

</div>

Looking at the logs, I don’t think there is a conflict either, but 2 different nodes may have increased the network traffic and caused the bandwith capacity to be exceeded. 🤔

---

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [December 26, 2023, 10:13pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/5 "2023-12-26T22:13:14Z")

</div>

I dont think so cuz its 1Gbps. I saw 1.7.5 stable release will update and observe

---

<div class="post-metadata">

**Author:** ![AstroNodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/astronodes/32/367_2.png) [@AstroNodes](https://forum.availproject.org/u/AstroNodes)\
**Post date:** [December 27, 2023, 12:38am UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/6 "2023-12-27T00:38:12Z")

</div>

I see if you say so looks like it’s not about that, lets ask devs

---

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [December 27, 2023, 1:42pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/7 "2023-12-27T13:42:01Z")

</div>

I did not updated to 1.7.5 but I synced with the main branch and built new binary. Now sync speed is blazing fast and no issue with this brand new 1.7.4 binary. I will keep observe and close this if no issue comes up.

---

<div class="post-metadata">

**Author:** ![AstroNodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/astronodes/32/367_2.png) [@AstroNodes](https://forum.availproject.org/u/AstroNodes)\
**Post date:** [December 27, 2023, 3:09pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/8 "2023-12-27T15:09:34Z")

</div>

Glad that works, sounds great! 👍

---

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [January 3, 2024, 1:01am UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/9 "2024-01-03T01:01:08Z")

</div>

Issue still remains but it is very rare.

---

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [February 12, 2024, 11:59am UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/10 "2024-02-12T11:59:24Z")

</div>

Issue came back again with latest version (v1.7.6) amd64 ubuntu 22.04

```auto
2024-02-12T11:25:49.965889Z INFO avail_light::network::rpc::event_loop: New justification at block no.: 406872, hash: 0xb5fa792b6f785146f6a308aceca8348cec9422f9cb99ad17beabda02909e4a7e
2024-02-12T11:25:50.025922Z INFO avail_light::network: Cells fetched from RPC block_number=406871 cells_total=10 cells_fetched=10 cells_verified=0 fetch_elapsed=192.246026ms proof_verification_elapsed=59.104482ms
2024-02-12T11:25:50.026302Z ERROR avail_light::light_client: Failed to fetch 10 cells block_number=406871
2024-02-12T11:25:50.026614Z INFO avail_light::api::v2: Message published to clients topic=ConfidenceAchieved published=0 failed=0
2024-02-12T11:25:51.088296Z INFO avail_light::network::rpc::event_loop: Header no.: 406872
2024-02-12T11:25:51.089310Z INFO avail_light::network::rpc::event_loop: Number of matching signatures: 5/7 for block 406872, set_id 184
2024-02-12T11:25:51.089331Z INFO avail_light::network::rpc::event_loop: Storing finality checkpoint at block 406872
2024-02-12T11:25:51.089561Z INFO avail_light::network::rpc::event_loop: Sending finalized block 406872
2024-02-12T11:25:51.089654Z INFO avail_light::light_client: Sleeping for 14.998662506s seconds
2024-02-12T11:25:51.089846Z INFO avail_light::api::v2: Message published to clients topic=HeaderVerified published=0 failed=0
2024-02-12T11:25:54.671171Z ERROR avail_light: Error: The application panicked (crashed).
Message: RPC Subscription stream should be infinite
Location: /home/runner/work/avail-light/avail-light/src/network/rpc/event_loop.rs:248

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-02-12T11:25:54.671197Z INFO avail_light::network::p2p::event_loop: Exiting event loop...
Error:
   0: Running Light Client encountered an error
   1: Panic occurred, shuting down

Location:
   src/bin/avail-light.rs:501

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

```

---

<div class="post-metadata">

**Author:** ![robin-rrt](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/robin-rrt/32/15_2.png) [@robin-rrt](https://forum.availproject.org/u/robin-rrt)\
**Post date:** [February 27, 2024, 3:27pm UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/11 "2024-02-27T15:27:23Z")

</div>

Try the latest version found here please: [v1.7.9](https://github.com/availproject/avail-light/releases/tag/v1.7.9)

---

<div class="post-metadata">

**Author:** ![Nirnaeth](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nirnaeth](https://forum.availproject.org/u/Nirnaeth)\
**Post date:** [March 5, 2024, 5:47am UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/12 "2024-03-05T05:47:05Z")

</div>

I am monitoring the light client for some time. Working without any issue looks like issue is fixed!

---

<div class="post-metadata">

**Author:** ![robin-rrt](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/robin-rrt/32/15_2.png) [@robin-rrt](https://forum.availproject.org/u/robin-rrt)\
**Post date:** [March 6, 2024, 11:54am UTC](https://forum.availproject.org/t/message-rpc-subscription-stream-should-be-infinite/797/13 "2024-03-06T11:54:44Z")

</div>

Awesome! That’s great news
