Comments (2)
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.
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)
- Any update on an example for implementaton HOT 4
- Web support HOT 3
- [New Features Plans] Some awesome feature are coming for this package user HOT 6
- Authentication Breaking Due to Casting Error on Future HOT 10
- Allow developers to initialize the Rest and Socket config separately HOT 6
- How do you detect errors with socketio methods? For a call like:
- i need hendel Socket.io events !! HOT 5
- Connection error HOT 5
- Incoming Version 5.0.0
- Other platform supported demo
- I encounter a Late Field initialization error when using Socket-IO HOT 5
- cannot be called on 'Map<dynamic, dynamic>?' because it is potentially null HOT 2
- socket queries HOT 2
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 flutter_feathersjs.dart.