Open chinatsu opened 2 years ago
See https://github.com/http-rs/tide-websockets/issues/23#issuecomment-996110797 for the root of this issue.
Sadly, I don't work on this anymore. Maybe I should have asked about moving it to my personal before I left Eaze. Unsure.
hi!
i originally posted this issue over at https://github.com/http-rs/tide-websockets/issues/23 where i was informed that
i'll post the issue again here!
i've just started a new project where i'd like to have a service that handles websockets and does some fiddling with a database, perhaps even at the same time. so i figured it would be a good idea to use tide-websockets and tide-sqlx, since both projects are listed as middlewares in the tide readme!
consider these dependencies
and this (simplified) program,
running websocat to test the endpoint
returns a
WebSocket protocol error
and the server returnsthread 'async-std/runtime' panicked at 'We have err'd egregiously! Could not unwrap refcounted SQLx connection for COMMIT; handler may be storing connection or request inappropiately?', /home/cn/.cargo/registry/src/github.com-1ecc6299db9ec823/tide-sqlx-0.6.1/src/lib.rs:312:17
i'm not really sure how to responsibly handle this case, so i'm kind of posting for awareness at this point.