-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dio unknown error in release mode #1872
Comments
Well, what is your |
If this is some Android app, maybe you are missing the internet permission? |
the permission is granted, it works in debug mode. |
Can you check your |
Also, try to reproduce this with a minimal example or a new project to indicate whether it's a project-specific issue. |
thanks man, it works :) |
I got the same error on the Windows side, unknown error, response body is null |
Package
Dio
Version
all
Output of
flutter doctor -v
Dart Version
3.0.5
Code
try
{
Dio dio = Dio();
Response e = await dio.get(serverPath);
Fluttertoast.showToast(
msg: e.toString(),
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 16.0
);
}
catch (e)
{
Fluttertoast.showToast(
msg: e.toString(),
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 16.0
);
}
Expected Result
response of path
Actual Result
fail to lookup (serverpath) // in Release Mode
succsess // in debug mode
The text was updated successfully, but these errors were encountered: