nitro icon indicating copy to clipboard operation
nitro copied to clipboard

`event.$fetch` returns HTTP 500, whereas `$fetch` works fine

Open DamianGlowala opened this issue 3 months ago • 1 comments

Environment

n/a

Reproduction

https://stackblitz.com/edit/github-uhgm3j-qvnqae?file=server%2Fapi%2Ftest.post.ts

Describe the bug

Observe how calling the endpoint in server route with $fetch works correctly, and how it breaks with event.$fetch by returning HTTP 500.

Additional context

No response

Logs

No response

DamianGlowala avatar Mar 22 '24 15:03 DamianGlowala