Giter Club home page Giter Club logo

Comments (10)

Dahkenangnon avatar Dahkenangnon commented on June 20, 2024 1

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.

Dahkenangnon avatar Dahkenangnon commented on June 20, 2024 1

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.

humbugz avatar humbugz commented on June 20, 2024 1

Thanks for the quick-fix and for your library!

Re: Null safety: unfortunately not yet, no.

from flutter_feathersjs.dart.

humbugz avatar humbugz commented on June 20, 2024 1

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.

Dahkenangnon avatar Dahkenangnon commented on June 20, 2024

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.

humbugz avatar humbugz commented on June 20, 2024

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.

Dahkenangnon avatar Dahkenangnon commented on June 20, 2024

Thanks for the quick-fix and for your package!

Re: Null safety: unfortunately not yet, no.

Ok. Thank.

from flutter_feathersjs.dart.

Dahkenangnon avatar Dahkenangnon commented on June 20, 2024

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.

humbugz avatar humbugz commented on June 20, 2024

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.

Dahkenangnon avatar Dahkenangnon commented on June 20, 2024

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