-
Notifications
You must be signed in to change notification settings - Fork 42
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
Invalid argument(s): Unknown type on deserialization. Need either specifiedType or discriminator field #17
Comments
I'd suggest manually checking the sample response can be deserialized. |
@hillelcoren sorry ,using the flutter-mobile,not the flutter-redux-starter... |
You may want to close this issue and open a new one. What do you mean by 'java backend'? |
it means my server side code is using java(spring boot ),not the invoice-ninja(PHP). |
Are you trying to use the Invoice Ninja mobile app with a different invoicing platform? I'm sorry, I wouldn't be able to help (and please be sure to follow the license). |
I'm sorry, the Invoice Ninja mobile app is only designed to be used with the Invoice Ninja web app. I'd suggest using the redux starter to make an app rather than the use the invoicing app. |
ok, thanks hillelcoren, i change to use redux-stater |
@hillelcoren ,i'm using java backend, when i post a login request to the backend,
i got the response:
{data: {accounts: [], version: 5.4, token: null, static: {}}, error: null}
when excute at this line(endities.g.dart line 237):
i got the error
I/flutter (11099): Deserializing '[data, {accounts: [], version: 5.4, token: null, static: {}}, null, null]' to 'LoginResponse' failed due to: Invalid argument(s): Unknown type on deserialization. Need either specifiedType or discriminator field.
E/flutter (11099): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (11099): type 'DeserializationError' is not a subtype of type 'String'
i have searched by google, still don't quite clear..would you please give me some tips ? thanks hillelcoren.
The text was updated successfully, but these errors were encountered: