Skip to content
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

The request finished correctly , but Exception in the interceptor stop the app #2017

Closed
MayaBloodsAI opened this issue Nov 1, 2023 · 1 comment
Labels
i: duplicate This issue or pull request already exists

Comments

@MayaBloodsAI
Copy link

Package

dio

Version

5.3.3

Operating-System

Web

Output of flutter doctor -v

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.19045.3570], locale en-IL)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.3)
[√] VS Code (version 1.83.1)
[√] Connected device (3 available)
[√] Network resources

Dart Version

3.1.0

Steps to Reproduce

I run post or get request (happened in both):
`
Dio dio = Dio(
BaseOptions(baseUrl: URLController.endpoint),
);

Response response = await dio.get(path);
`

I can print the data everything work 100%...

But.. the application stop with Exception no error message present.. I just can see this line in the interseptor.dart file:

image

Expected Result

App continue normally

Actual Result

I get Exception with out any explanation even thought the request finished and the request.data is as expected

@MayaBloodsAI MayaBloodsAI added h: need triage This issue needs to be categorized s: bug Something isn't working labels Nov 1, 2023
@kuhnroyal
Copy link
Member

This may be related to #1953. Cam you try running without debugger or in release mode?

@kuhnroyal kuhnroyal closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2023
@AlexV525 AlexV525 added i: duplicate This issue or pull request already exists and removed h: need triage This issue needs to be categorized s: bug Something isn't working labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants