You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a field defined with a type and the response have a different type the error does not say on which field does the issue happened, that makes debugging this harder
Actual
Check the message type int' is not a subtype of type 'double' and the stacktrace:
E/flutter ( 6262): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: type int' is not a subtype of type 'double'E/flutter ( 6262): #0 JsonConverter.decodeJson (package:chopper/src/interceptor.dart:226:46)E/flutter ( 6262): #1 JsonConverter.convertResponse (package:chopper/src/interceptor.dart:231:12)E/flutter ( 6262): #2 ChopperClient._decodeResponse (package:chopper/src/base.dart:165:29)E/flutter ( 6262): #3 ChopperClient._handleSuccessResponse (package:chopper/src/base.dart:247:17)E/flutter ( 6262): #4 ChopperClient.send (package:chopper/src/base.dart:300:19)
Expected
on field 'xxxx' the type 'int' is not a subtype of type 'double' in type cast
The text was updated successfully, but these errors were encountered:
Hi
If you have a field defined with a type and the response have a different type the error does not say on which field does the issue happened, that makes debugging this harder
Actual
Check the message
type int' is not a subtype of type 'double'
and the stacktrace:Expected
The text was updated successfully, but these errors were encountered: