unjs / h3

⚡️ Minimal H(TTP) framework built for high performance and portability
https://h3.unjs.io/
MIT License
3.66k stars 215 forks source link

Failed to parse URL when using $fetch plugin + proxy #833

Open lammerfalcon opened 3 months ago

lammerfalcon commented 3 months ago

Environment


Reproduction

https://stackblitz.com/edit/github-c51gfm-fpwdjf?file=app.vue,plugins%2Fapi.ts

Describe the bug

$fetch plugin with proxy cannot parse URL on server side Error: [GET] "/api/auth/me": <no response> Failed to parse URL from /api/auth/me

Additional context

No response

Logs

No response

lammerfalcon commented 3 months ago

@pi0 Hello! can you look at this bug please, really dont understand why this error happens. i want to proxy request custom $fetch plugin