Comments (10)
Ok.
This will be fixed quickly and a new patch version will be published to solve the problem, tomorrow.
Thank you for using this package and feel free to make a contribution by voting for new coming features
at #19
thank @humbugz
from flutter_feathersjs.dart.
Does your app use the dart null safety feature?
If yes, you will need to wait for the new patched version as all versions of Flutter FeathersJs <V4.0.2 don't support this feature.
from flutter_feathersjs.dart.
Thanks for the quick-fix and for your library!
Re: Null safety: unfortunately not yet, no.
from flutter_feathersjs.dart.
Thanks, yeah that makes sense. I'd looked over the Github releases at one point, likely where I got the 4.0.2 version number instead.
Other than the unintended upgrade that broke, I've been using Flutter Feathers for a few months now - love it!
from flutter_feathersjs.dart.
Does the exception gone when you downgrade to v3.0.0, the exception ?
Please, can use fill all the stacktrace of the error please.
from flutter_feathersjs.dart.
Yes, the problem is resolved by reverting to v3.0.0.
After the REST authentication is complete and it attempts to authenticate via Sockets:
The error: type 'Future<dynamic>' is not a subtype of type 'FutureOr<bool>' in type cast
Occurs because of: /lib/src/feathersjs.dart
Line 61:
bool isAuthenticated = await (scketio.authWithJWT() as FutureOr<bool>);
The future needs to be Future<dynamic>
.
With that update made 4.0.2 works as expected.
from flutter_feathersjs.dart.
Thanks for the quick-fix and for your package!
Re: Null safety: unfortunately not yet, no.
Ok. Thank.
from flutter_feathersjs.dart.
The other thing to know is that the package version is updated with pub.dev not here on GitHub. The last version on the pub is 4.0.3, not 4.0.2 ? @humbugz
Have you tried this version? Or do you use the code from Github ?
The Github version build will be remove to focus on pub.dev release only.
from flutter_feathersjs.dart.
I'd used pub.dev, not Github directly. It's possible it was 4.0.3 that was installed - sorry, I'm not 100% sure.
from flutter_feathersjs.dart.
I'd used pub.dev, not Github directly. It's possible it was 4.0.3 that was installed - sorry, I'm not 100% sure.
Voilà. It's 4.0.3 which were installed as you did't specify a version (in that case the last version is installed).
Happy hacking FeathersJs+Flutter to 🚀
Don't miss the documentation at: https://dahkenangnon.github.io/flutter_feathersjs.dart/ for in-depth details.
from flutter_feathersjs.dart.
Related Issues (17)
- 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
- 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
- how return FeatherJsError data in json formate instead of string HOT 1
- Troubleshooting Flutter App Integration with Feathers.js Server
- Make the authenticate method more flexible
- socket queries HOT 2
- soccer io errors on init() 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.