Giter Site home page Giter Site logo

Comments (8)

haliphax avatar haliphax commented on April 30, 2024

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.

yudai avatar yudai commented on April 30, 2024

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.

carstenhag avatar carstenhag commented on April 30, 2024

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.

yudai avatar yudai commented on April 30, 2024

Thanks. Unfortunately, I have no idea about what's the cause but it's a websocket related issue.

from gotty.

carstenhag avatar carstenhag commented on April 30, 2024

@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.

0

http://92.222.74.40:8080/ OK
http://znc.moter8.xyz:8080/ OK
http://moter8.xyz:8080/ KO

from gotty.

carstenhag avatar carstenhag commented on April 30, 2024

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.

k0l0r3k99 avatar k0l0r3k99 commented on April 30, 2024

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.

rajeget avatar rajeget commented on April 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.