mirror of
https://github.com/agrinman/tunnelto.git
synced 2026-04-26 01:06:01 +03:00
[GH-ISSUE #51] Erroe: failed to write to incoming websocket: ConnectionClosed #43
Labels
No labels
Need more info
bug
duplicate
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tunnelto#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wnz99 on GitHub (Jun 4, 2021).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/51
Hi,
I'm having an issue with:
I'm trying to tunnel a wss connection however I'm getting an error. The same connection works with ngrock. The following are the two commands and the error logs:
Logs:
@FrancoAA commented on GitHub (Jun 9, 2021):
I'm having the same issues with websocket connections when trying to run a code-server instance. The issue doesn't happen when issue ngrock or localtunnel alternatives.
@samuelstroschein commented on GitHub (Jun 23, 2021):
Similar/same issue. I guess we are all using Hasura/GraphQL subscriptions over websockets? For unknown reasons, a websocket connection can not be established.
@wnz99 commented on GitHub (Jul 2, 2021):
Yes, it's Hasura subscriptions.
@mkjpryor commented on GitHub (Jul 6, 2021):
I'm also seeing similar issues when trying to expose a Guacamole console (https://guacamole.apache.org/). This works using
localtunnel, but I preferred this implementation as (a) it is in Rust and (b) it has the potential to scale out.I assume
tunneltois meant to support websockets?@agrinman commented on GitHub (Jul 10, 2021):
Hi -- we do support web sockets, though it seems like something is not working with hasura/guacamole. For example, this web socket example works just fine from my testing: https://github.com/gorilla/websocket/tree/master/examples/chat (note: adjust
wstowssin the html).Can someone share a simple to replicate example?
@agrinman commented on GitHub (Jul 19, 2021):
Hi: I rewrote a bit of the local tcp forwarding logic which I think might solve some of these more complex cases.
Would someone be able to try a latest version to see if this fixes it for them?
(note 0.1.19 is not pushed to brew just yet)
Thanks!
edit: it's really easy to get cargo if you don't have it, https://rustup.rs
@jcroucher commented on GitHub (May 9, 2022):
0.1.19 fixed my issue loading wss urls
@jvalteren commented on GitHub (Jun 5, 2023):
Hi @agrinman, I too have issues with use of WebSockets and would like to try this 0.1.19 version. I'm using Homebrew on macOS. However, I can't find version 0.1.19 anywhere on GitHub or in Homebrew. Any pointers as to how I can get this version or fix the issue in another way?
@CWSpear commented on GitHub (Jun 26, 2023):
@jvalteren was having this issue and found this page as a result.
I'm on a Mac and was also using the Homebrew version.
(I have
rustinstalled via Homebrew)You do need to either uninstall the Homebrew version or make sure you're using the full path to the v0.1.19 one, e.g.:
All that said, I get a different error when using 0.1.19:
It doesn't work at all, so it's worse off than 0.1.18 :(
@jvalteren commented on GitHub (Jun 27, 2023):
Thanks @CWSpear.
@agrinman what is the status of the rewritten local TCP forwarding logic? Any chance of pushing this to Homebrew?
@SerJaimeLannister commented on GitHub (Feb 14, 2025):
I tried this on a nat which doesn't have access to sudo / is a locked down , and I also face this same issue
ERROR tunnelto::local > failed to connect to local service: Connection refused (os error 111)
CONNECTION REFUSED
ERROR tunnelto > failed to open local tunnel
ERROR tunnelto > got data but no stream to send it to.
ERROR tunnelto::local > failed to connect to local service: Connection refused (os error 111)
CONNECTION REFUSED
ERROR tunnelto > failed to open local tunnel
ERROR tunnelto > got data but no stream to send it to.
ERROR tunnelto::local > failed to connect to local service: Connection refused (os error 111)
CONNECTION REFUSED
ERROR tunnelto > failed to open local tunnel
ERROR tunnelto > got data but no stream to send it to.
ERROR tunnelto::local > failed to connect to local service: Connection refused (os error 111)
CONNECTION REFUSED
ERROR tunnelto > failed to open local tunnel
ERROR tunnelto > got data but no stream to send it to.