cloudflare / serverless-cloudflare-workers

Serverless provider plugin for Cloudflare Workers
BSD 3-Clause "New" or "Revised" License
175 stars 37 forks source link

Thread panic on mod.rs and socket.rs #56

Closed zaerl closed 3 years ago

zaerl commented 3 years ago

There are two different problems. If I need to separate this in two different issues please tell me.

When the client code generate an error sometimes an unnamed thread crash:

thread '<unnamed>' panicked at '--watch change message failed to send: "SendError(..)"', src/wranglerjs/mod.rs:110:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Script modified; context reset.

If there aren't changes on the code for more than a minute (not sure about the corrent interval) the socket thread crash:

thread '${datacentername}-runtime-worker' panicked at 'Failed to connect to devtools instance: Http(400)', src/commands/dev/socket.rs:26:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace