-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Type 'Null' is not a subtype of type 'String' #774
Labels
type:bug
Impaired feature or lacking behavior that is likely assumed
Comments
Thanks for opening this issue!
|
5 tasks
5 tasks
mtrezza
added
the
type:bug
Impaired feature or lacking behavior that is likely assumed
label
Jul 9, 2022
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New Issue Checklist
Issue Description
I'm using parse dio client. When there is no internet connection (disabled wifi and LTE) and trying to do any operation with the parse server like (create or update or any operation from the
ParseClient
class)The dio throws a
DioError
and in the SDK we convert the error toParseNetworkResponse
Parse-SDK-Flutter/packages/dart/lib/src/network/parse_dio_client.dart
Lines 86 to 89 in af76c6b
And here is the bug the
data
property inerror.response
is null.so the next exception will be thrown:
Type 'Null' is not a subtype of type 'String'
Steps to reproduce
init the Parse SDK with dio client
Disable wifi and LTE (cut off the internet of the device)
invoke
create
operation on parse objectActual Outcome
Expected Outcome
ParseResponse
with errorEnvironment
Flutter version: 2.10.2
android emulator with android version: 9
Parse Flutter SDK
3.1.2
Ubuntu 20.04.4 LTS x86_64
Server
4.5.0
The text was updated successfully, but these errors were encountered: