e2b-dev / E2B

Secure open source cloud runtime for AI apps & AI agents
https://e2b.dev/docs
Apache License 2.0
7.02k stars 458 forks source link

WS error when closing sandbox during stream `end` event #261

Closed ValentaTomas closed 3 months ago

ValentaTomas commented 11 months ago

When closing sandbox during the end event of stream (edge) there are sometimes the following errors:

TypeError: Cannot read properties of null (reading 'toString') at ws.onmessage
Awaiting response to "filesystem_subscribe" with id: 1YnoY73JVUFS timed out.

We are not sure if this happens because the sandbox is closed before the last message arrives or because of something else.

(https://e2b-team.slack.com/archives/C069TGQ9Z8T/p1702595858160579?thread_ts=1702490734.887939&cid=C069TGQ9Z8)

E2B-446

ValentaTomas commented 3 months ago

We stopped using websockets in the new (beta) SDK, so this issue is no longer relevant.