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
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 to ParseNetworkResponse
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
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: