Comments (5)
Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? π
Itβs likely an ofetch issue if so.
from nuxt.
Start a new pull request in StackBlitz Codeflow.
from nuxt.
Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? π
Itβs likely an ofetch issue if so.
I've been able to reproduce it with a simple express server + simple vue app (no Nuxt/Nitro needed).. so It may truly be an ofetch issue.
Should I report it directly to unjs/ofetch or do the same with Nitro instead of express and report it there..?
from nuxt.
No, it's even better if you can report directly to ofetch
β€οΈ
from nuxt.
I just realized what's going on here. $fetch
is transforming the headers object into a Headers class if there's a body and the method is other than GET; so if we modify the headers just as shown in the useFetch
documentation, when the request is retried and loops back to the onRequest
interceptor, these are being added as extra properties of the Headers object and ignored later
A proposed solution is to normalize the object before hitting the onRequest
(unjs/ofetch#392)
from nuxt.
Related Issues (20)
- "I want to pass in a user-defined function, but runtimeConfig cannot pass in functions and arrays." HOT 4
- Tailwindcss added at last is not applied HOT 5
- Disabling SSR prevents remaining CSS from loading HOT 5
- Error: Cannot find module punycode/ HOT 9
- Img @error not working HOT 2
- useHead undefined after initiating a regex (since monday) HOT 4
- keepalive not work HOT 1
- String vs object errors with `createError` and accessing server-thrown errors on client
- Tailwind css issue related to CSS specificity on dev server HOT 1
- keep alive caches are destroyed when visit keep alive excluded page HOT 2
- The package generated under the .output/server/node_modules file is a hyperlink. HOT 2
- 'text/html' is not a valid JavaScript MIME type. HOT 2
- This module cannot be imported in the Vue part of your app. [importing @nuxt/kit from app.vue] causing page to not work HOT 5
- If a component uses empty data in `useFetch`, then `clearError` will be invalidated HOT 2
- Cache control header missing in response headers (while using nitro.publicAssets) HOT 7
- [nuxt] [request error] [unhandled] [500] _fetch is not a function HOT 3
- feat: support passing options to `TypedRouterOptions` when using `experimental.typedPages` HOT 3
- Dynamic layouts HOT 4
- Previous route info HOT 2
- Imported CSS files not correctly injected in circumstances involving lazy-loaded components HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.