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

timeout not working in version 4.5.0 #2145

Closed
mohbasirudin opened this issue Mar 18, 2024 · 1 comment
Closed

timeout not working in version 4.5.0 #2145

mohbasirudin opened this issue Mar 18, 2024 · 1 comment

Comments

@mohbasirudin
Copy link

Package

dio

Version

4.5.0

Operating-System

Android, Windows

Adapter

Default Dio

Output of flutter doctor -v

[√] Flutter (Channel stable, 3.16.2, on Microsoft Windows [Version
    10.0.22631.3296], locale en-US)
    • Flutter version 3.16.2 on channel stable at D:\SDK\FLUTTER
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e1c857886 (4 months ago), 2023-11-30
      11:51:18 -0600
    • Engine revision cf7a9d0800
    • Dart version 3.2.2
    • DevTools version 2.28.3

[√] Windows Version (Installed version of Windows is version 10 or
    higher)

[√] Android toolchain - develop for Android devices (Android SDK
    version 34.0.0)
    • Android SDK at C:\Users\rxzero\AppData\Local\Android\Sdk    
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\rxzero\AppData\Local\Android\Sdk    
    • Java binary at: C:\Program Files\Android\Android
      Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at
      C:\Users\rxzero\AppData\Local\Google\Chrome\Application\chro
      me.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 
    2022 17.8.3)
    • Visual Studio at C:\Program Files\Microsoft Visual
      Studio\2022\Community
    • Visual Studio Community 2022 version 17.8.34330.188
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio   
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-b2043.56-10027231)

[√] IntelliJ IDEA Community Edition (version 2023.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA        
      Community Edition 2023.3.3
    • Flutter plugin version 77.0.1
    • Dart plugin version 233.13763.5

[√] VS Code (version 1.87.2)
    • VS Code at C:\Users\rxzero\AppData\Local\Programs\Microsoft 
      VS Code
    • Flutter extension version 3.84.0

[√] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64  
      • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64  
      • Microsoft Windows [Version 10.0.22631.3296]
    • Chrome (web)                 • chrome        •
      web-javascript • Google Chrome 122.0.6261.129

[√] Network resources
    • All expected network resources are available.

• No issues found!

Dart Version

3.2.2

Steps to Reproduce

Dio dio = Dio(
  BaseOptions(
    baseUrl: Apps.baseUrl,
    receiveDataWhenStatusError: true,
    connectTimeout: const Duration(seconds: 10),
    sendTimeout: const Duration(seconds: 10),
    receiveTimeout: const Duration(seconds: 10),
    contentType: Headers.formUrlEncodedContentType,
    validateStatus: (status) => true,
  ),
);

Expected Result

timeout working normally

Actual Result

nothing logs has been record

@mohbasirudin mohbasirudin added h: need triage This issue needs to be categorized s: bug Something isn't working labels Mar 18, 2024
@kuhnroyal
Copy link
Member

Please test with the latest Dio version, there have been a lot of fixes & improvements related to timeouts since 4.5.0 was released. 4.x is no longer receiving any updates.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
@AlexV525 AlexV525 added i: outdated and removed h: need triage This issue needs to be categorized s: bug Something isn't working labels Mar 19, 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

3 participants