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

Duplicate the base url #2283

Closed
tuyen3962 opened this issue Aug 15, 2024 · 4 comments
Closed

Duplicate the base url #2283

tuyen3962 opened this issue Aug 15, 2024 · 4 comments

Comments

@tuyen3962
Copy link

Package

dio

Version

5.5.0+1

Operating-System

Android, iOS

Adapter

Default Dio

Output of flutter doctor -v

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.4 23E214 darwin-arm64, locale
    en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.92.0)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Dart Version

No response

Steps to Reproduce

  1. I set the base url in dio.
  2. But sometime call api, it will duplicate the base url. However sometime it does not happen.

Expected Result

No duplicate base url

Actual Result

Sometime it duplicate the base url when calling api

@tuyen3962 tuyen3962 added h: need triage This issue needs to be categorized s: bug Something isn't working labels Aug 15, 2024
@tuyen3962
Copy link
Author

Screenshot 2024-08-15 at 09 38 45

@AlexV525
Copy link
Member

Please provide a minimal standalone runnable reproducible example.

@tuyen3962
Copy link
Author

When I call two API at the same time, it will have the base url in the path of second API.
Now the first time I call login API, and the second time I call API to update my fcm token to profile. In the second time, it will call api twice and the last time of api will be duplicate. Please check it for me.

@AlexV525
Copy link
Member

Please provide a minimal standalone runnable reproducible example.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
@AlexV525 AlexV525 removed h: need triage This issue needs to be categorized s: bug Something isn't working labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants