Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I set request timeout?#609

Unanswered
r-yeganeh asked this question inQ&A
Discussion options

What is the default timeout for a given request and where can I configure that?

You must be logged in to vote

Replies: 4 comments

Comment options

You might want to look athttps://github.com/prisma-labs/graphql-request/#cancellation

You must be logged in to vote
0 replies
Comment options

Take a look at#103

You must be logged in to vote
0 replies
Comment options

I would be also interested in a smooth way to set it by configuration.
The mentioned code in#103 seems more like a workaround (and doesnt work in my case).

You must be logged in to vote
0 replies
Comment options

If you are running node this does the trick:

returnnewGraphQLClient(someUrl,{signal:AbortSignal.timeout(API_CALL_TIMEOUT_MS),});

SeeAbortSignal-Docs

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
4 participants
@r-yeganeh@drefined@WtfJoke@brettinternet
Converted from issue

This discussion was converted from issue #346 on October 30, 2023 15:14.


[8]ページ先頭

©2009-2025 Movatter.jp