Skip to content

DioLink._executeDioRequest Timeout exception #473

Open
@amritnew

Description

@amritnew

I'm encountering a timeout exception when using the DioLink._executeDioRequest method in my app. It seems that when requests are timeout, it throws an uncaught exception.
I have an PR open with my changes #472

Exception

Fatal Exception: FlutterError
LinkException(DioException [receive timeout]: The request took longer than 0:01:00.000000 to receive data. It was aborted. To get rid of this exception, try raising the RequestOptions.receiveTimeout above the duration of 0:01:00.000000 or improve the response time of the server., #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520) <asynchronous suspension> #1 DioLink._executeDioRequest (package:gql_dio_link/src/dio_link.dart:198) <asynchronous suspension> #2 DioLink.request (package:gql_dio_link/src/dio_link.dart:71) <asynchronous suspension> )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions