remix: Server Timeout on deferred routes
What version of Remix are you using?
2.2.0
Are all your remix dependencies & dev-dependencies using the same version?
- Yes
Steps to Reproduce
Follow up from this issue: https://github.com/remix-run/remix/issues/4493
-
Create a remix project with
@vercel/remix@supabase/auth-helpers-remixandtailwindcss -
Create a route with a loader deferring results from supabase
-
Add cache control headers
-
Make changes to tailwind and save
-
Refresh the route (a couple of times to trigger the timeout)
Expected Behavior
Expected to have deferred or cached result to come through.
Actual Behavior
After refreshing the page you will experience a Server timeout error from the error boundary or Await’s errorElement.
About this issue
- Original URL
- State: open
- Created 8 months ago
- Reactions: 1
- Comments: 18 (5 by maintainers)
HEllo, i have the same issue ⬆️
with :
I’m getting this error as well, on 2.8.0. When I save changes to my project and the page reloads (or if I do a manual refresh), I always get the “Server timeout” error on routes that fetches from a 3rd party api. ABORT_DELAY is set to 20_000 just for testing. After navigating to another route and then back again, it starts working. Edit: both when running locally and in azure cloud.
Can confirm issue still exists when you reload a page with streaming. If you navigate from a different page to this page it works well but If you refresh this page it throws time out error. Opening this page link on a different tab throws error
here is my example
I ended up updating remix libs to 2.8.0 and this hasn’t come up yet, no changes were made besides this. Will close this once I get to the account that opened the issue.
same here, i was just testing out remix
i deferred a setTimeout promise and the server times out in the client
actually resolves the promise but can’t swap the UI