Comments (8)
Do you have a proxy sitting in front of GoTTY, or is it raw? Just curious, since I was having this issue, as well, but fixed it with some nginx configuration settings. Of course, I was constantly experiencing the error -- it wasn't intermittent.
from gotty.
Is that possible to provide the command you ran?
If you are using a proxy as @haliphax mentioned, let me know that too.
from gotty.
I ran both gotty htop -p "8080"
and the one to start gotty with tmux from
the readme.
Nginx is running on the machine but gotty is not getting proxied by it.
Is that possible to provide the command you ran?
If you are using a proxy as @haliphax https://github.com/haliphax
mentioned, let me know that too.
from gotty.
Thanks. Unfortunately, I have no idea about what's the cause but it's a websocket related issue.
from gotty.
@yudai Ooh, I think I got the cause of this now. It's probably caused by Cloudflare. I have it only running on @ and only there it doesn't work. Tested on both Chrome and Firefox.
http://92.222.74.40:8080/ OK
http://znc.moter8.xyz:8080/ OK
http://moter8.xyz:8080/ KO
from gotty.
https://support.cloudflare.com/hc/en-us/articles/200169466-Can-I-use-CloudFlare-with-websockets-
WebSockets are currently only available for Enterprise customers, but will be available for other plan levels in the future.
All other customers -- Business, Pro, and Free -- should create a subdomain for Websockets in their CloudFlare DNS and disable the CloudFlare proxy ("grey cloud" the record in CloudFlare DNS Settings).
from gotty.
I tcpdumped traffic before CloudFlare and after CloudFlare. CF removes only "Upgrade: websocket", other data are unchanged. Could gotty ignore "Upgrade: websocket"? Another way to fix is use nginx proxy and add header with upgrade.
Edit: use nginx doesn't resolve this. I've error: "Failed to authenticate websocket connection: websocket: close 1006 unexpected EOF". In JS, new WebSocket("wss://cloudflare/gotty/ws").onOpen is not called.
from gotty.
For NGINX please see my page https://github.com/rajeget/websocket-nginx/ , it works
Let me know if that works for cloudfare as well .
from gotty.
Related Issues (20)
- tweaking scrollback buffer and disconnections
- Failed to execute command HOT 2
- Installation through `go install` fails because of dependency issue HOT 4
- New line is not rendered on chrome 101 HOT 1
- HomeBrew installation requires intel architecture HOT 1
- Default port
- fatal error: runtime: bsdthread_register error HOT 5
- Gotty multi users and Docker and Helm
- Can I use ldap authentication before user login ?
- The browser terminal cannot display emoji HOT 3
- gotty_darwin_arm ?
- Error "Failed to authenticate websocket connection" from Jmeter tool
- It's great, it would be perfect if it can continue to be packaged as web nc
- brew installation error
- New needs and suggestions,and ask for help
- build xterm.ts more errors
- 📣 Maintained fork at sorenisanerd/gotty 📌
- Limited pasting characters
- Does not work on MacOS - produces a crash
- Has anyone upgraded this project to the latest go sdk version?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotty.