Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: unable to do getproducts #11

Closed
ajay-prabhakar opened this issue Aug 6, 2020 · 4 comments
Closed

bug: unable to do getproducts #11

ajay-prabhakar opened this issue Aug 6, 2020 · 4 comments

Comments

@ajay-prabhakar
Copy link

while I am trying to fetch products

E/flutter (15453): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type 'String' is not a subtype of type 'int'
E/flutter (15453): #0      new WooProduct.fromJson (package:woocommerce/models/products.dart:172:20)
E/flutter (15453): #1      WooCommerce.getProducts (package:woocommerce/woocommerce.dart:461:29)

can anyone get me fix

@sharecube
Copy link

while I am trying to fetch products

E/flutter (15453): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type 'String' is not a subtype of type 'int'
E/flutter (15453): #0      new WooProduct.fromJson (package:woocommerce/models/products.dart:172:20)
E/flutter (15453): #1      WooCommerce.getProducts (package:woocommerce/woocommerce.dart:461:29)

can anyone get me fix

you need to use String as product category, this would work

@ajay-prabhakar
Copy link
Author

it is actually a string,

I am still facing this issue for JWT auth also

@RayOkaah
Copy link
Owner

I cant wrap my head around what is the string value throwing that error?

@ajay-prabhakar
Copy link
Author

you can use this https://github.com/yhhCh405/yhhFlutterWoocommerce/tree/master/ plugin

it works fine for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants