Giter Club home page Giter Club logo

Comments (2)

SaabirMohamed avatar SaabirMohamed commented on June 19, 2024 1

Resolved:
I tested my project by initialising it using the heroku demo (works perfectly...thanks for making that available)
That made me focus on nginx confs ...after some googling , appears was this line in the config (lowercase "u" proxy_set_header Connection "upgrade";), just tried it as per the stackoverflow suggestion.
I added it as an extra line and added location /socket.io/ as another proxy_pass entry
the error seems to be gone (I'm able to create a test user and authenticate as well)

Maybe this will help someone else who happens to face this issue.

from flutter_feathersjs.dart.

Dahkenangnon avatar Dahkenangnon commented on June 19, 2024

Hi @SaabirMohamed

The problem is about your base url
Remove the leading "/" and it will work. Also, you don't need to put the port number (:'0') in the url.

To enable websocket on nginx, use just this in your server block:

proxy_http_version 1.1;
proxy_set_header   Upgrade $http_upgrade;
proxy_set_header   Connection "upgrade";

Your must have:

https://www.mysite.xyz as baseUrl

The "flutter: WebSocketException: Connection to 'https://www.mysite.xyz:0/socket.io/?EIO=3&transport=websocket#' was not upgraded to websocket" mean that flutter_feathersjs cannot reach out the socketio server because the baseUrl is incorrect.

Let me known if this help

from flutter_feathersjs.dart.

Related Issues (14)

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.