-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[React Router V7] Server timeout after 5 seconds #12467
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
Comments
|
You should Here's the CHANGELOG entry:
|
@timdorr can confirm that it worked. This variable should be part of official documentation because it is very likely for any streamed response to take more than 5 seconds. |
FWIW this was in the Single Fetch docs in Remix (https://remix.run/docs/en/main/guides/single-fetch#streaming-timeout) and referenced in the original issue this stemmed from (remix-run/remix#7991 (comment)). I think we need to get some of those long form docs moved over to RR still though so we can use this issue as the docs enhancement 👍 |
@brophdawg11 thank you for the refs! Helpful. |
But what if I don't reveal the default entry server file, how can I solve it? |
🤖 Hello there, We just published version Thanks! |
@qinsong77 #12478 updates the default version of that file to use |
🤖 Hello there, We just published version Thanks! |
Thanks for the note, seems I must run |
🤖 Hello there, We just published version Thanks! |
Is there any way to override this on a per route basis? I would like to use a resource route to feed into Server Sent Events and the requests time out all the time. I don't just want to increase the timeout for the entire server, but just this one route. |
🤖 Hello there, We just published version Thanks! |
@DanielBaulig Not at the moment - would you want to write up a proposal discussion here on Github? If it get's enough community interest we would look into implementing it |
@DanielBaulig @brophdawg11 Just my 2 cents: It's late and I didn't read the docs properly (this also happens in the morning, who am I kidding): I had wrongly assumed that While I'm not nearly deep enough in remix or react-router to know if that would make sense or work: That was my intuition. |
Wow that took me by surprise. Imo we should add it to the streaming docs: https://reactrouter.com/how-to/suspense PR: #13415 |
I'm using React Router as a...
framework
Reproduction
Created a freshly new repository. Created minimal example:
https://github.com/laimonassutkus/ReactRouterV7-HttpStreaming
Just run "npm run dev", open the browser and timeout later happens.
How do I increase the timeout beyond 5 seconds ?
Code at a glance
Loader:
Page:
System Info
Used Package Manager
npm
Expected Behavior
No timeout happens or at least there is a way to increase it.
Actual Behavior
Always timeout if promise resolves in more that 5 seconds.
The text was updated successfully, but these errors were encountered: