Git Product home page Git Product logo

Comments (6)

cristaloleg avatar cristaloleg commented on July 24, 2024 2

What is the value of Upgrade header?

from ws.

rusenask avatar rusenask commented on July 24, 2024

Update: I suspect it's my problem, as after downgrade it still misbehaves, maybe some middleware :|

from ws.

jjhesk avatar jjhesk commented on July 24, 2024

handshake error: bad "Upgrade" header
still i have the same problem now.. can you fix that? @gobwas

from ws.

gobwas avatar gobwas commented on July 24, 2024

@jjhesk Hi, if this is a bug inside ws, for sure I can. Could you provide more details on your problem? Thanks.

from ws.

amaresh494 avatar amaresh494 commented on July 24, 2024

@gobwas Hello, I'm getting the same error, when I connect to the WebSocket server using NGINX proxy. Here's how my code looks like,
Screenshot 2021-03-31 at 5 23 14 PM

and NGINX configuration is as below,

location /wsapp/ {
    proxy_pass http://localhost:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
}

The problem is when I try connecting to the WebSocket server through Nginx proxy, I'm getting the "handshake error: bad "Upgrade" header error on the WebSocket server side.

Please help!

from ws.

Kiura avatar Kiura commented on July 24, 2024

I still am getting this error in May 2022 (v1.1.0)

from ws.

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.