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

Hi all, this line will break all requests that take longer than 5 seconds without any warning ...can this be a configuration value? #1453

Open
jpetey88 opened this issue Aug 9, 2024 · 1 comment

Comments

@jpetey88
Copy link

jpetey88 commented Aug 9, 2024

await link.request(request).timeout(Duration(seconds: 5)).first;

@leocape
Copy link

leocape commented Sep 24, 2024

+1 This 5 second limit is arbitrary and should be customisable at the client level (or better yet at the request level).

Our current use case that this is breaking - uploading documents frequently take > 5 seconds on slow mobile connections, and even though the upload succeeds, the response is an error (incorrectly) due to the client timeout to soon.

edit: I see a fix has been merged to main graphql-v5.2.0-beta.9, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants