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

singlefetch Error: Unable to decode turbo-stream response from URL: <URL> #126

Closed
jorisre opened this issue Aug 2, 2024 · 2 comments
Closed

Comments

@jorisre
Copy link

jorisre commented Aug 2, 2024

Reproduction

With Singlefetch enabled

  1. Visit the deployed version at this link: https://vercel-remix-fetch-bug.vercel.app/login
  2. Click Login & Redirect to submit the action
  3. The app then crashes.

Repo: https://github.com/jorisre/vercel-remix-fetch-bug
Preview: https://vercel-remix-fetch-bug.vercel.app/login

Note : everything is working well in local env.

Expected Behavior

Should not throw an error.

Actual Behavior

When I attempt to submit the login, I encounter the following error :

Error: Unable to decode turbo-stream response from URL: https://vercel-remix-fetch-bug.vercel.app/login.data
at Xa (https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:148:1818)
at async https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:148:267
at async f (https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:185:1603)
at async https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:148:201
at async Fy (https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:50:5399)
at async https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:148:155
at async Promise.all (index 1)
at async zy (https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:50:4050)
at async Lr (https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:49:29287)
at async op (https://vercel-remix-fetch-bug.vercel.app/assets/components-BAqPFZ9s.js:49:21541)

The application functions when I deactivate singlefetch.

Here are some related investigations:
On Remix's end: remix-run#9809
On Vercel's end: #124

@TooTallNate
Copy link
Member

TooTallNate commented Aug 2, 2024

This is actually a duplicate of #124, and the rollout of that fix is still pending (should be live in the next day or so).

Here's a working deployment after I set the env var as described in my comment on the other issue: https://vercel-remix-fetch-353n1cyuk-uncurated-tests.vercel.app/login

@jorisre
Copy link
Author

jorisre commented Aug 16, 2024

I applied the solution you provided to my company project, but unfortunately, the issue persists.

This is actually a duplicate of #124, and the rollout of that fix is still pending (should be live in the next day or so).

Here's a working deployment after I set the env var as described in my comment on the other issue: https://vercel-remix-fetch-353n1cyuk-uncurated-tests.vercel.app/login

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