-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Experimental rewriting of POST request does not work (reopened) #11247
Comments
The issue here is that even though the body is copied, you have already read it. When you call |
I think this must be done in userland. Using a body after it's been consumed (or read) is most of the time invalid. |
I'll see if I can make it give a more helpful error |
@ascorbic good catch. I didn't realise that something that's a |
@gersomvg yeah, it's because all read actions on a request (or response) are actually stream methods, and once you've consumed a stream you can't "unstream" it. The |
@ascorbic Learned something new today 🎊 |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Not specific to a browser
Describe the Bug
Duplicate of this previous issue that I can't reopen: #11127
It is supposed to be fixed in Astro 4.10 but the exact same stackblitz repro still doesn't work.
I get the error
Response body object should not be disturbed or locked
What's the expected result?
I'd expect
/page-b
to render and receive theemail
field in FormDataLink to Minimal Reproducible Example
https://stackblitz.com/edit/github-oyssmw?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered: