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.js.
Start a new pull request in StackBlitz Codeflow.
from nuxt.js.
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.js.
No, it's even better if you can report directly to ofetch
❤️
from nuxt.js.
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.js.
Related Issues (20)
- [nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug. Find out more at `https://nuxt.com/docs/guide/concepts/auto-imports#vue-and-nuxt-composables`. HOT 6
- Problems building Nuxt 3 on electron startup
- useHead doubling the baseURL only when served from that domain HOT 2
- Dynamic Menu Generation Based on Directory or Route Configuration in Nuxt 3 SSR HOT 1
- [useFetch] Component is already mounted, please use $fetch instead. See https://nuxt.com/docs/getting-started/data-fetching HOT 12
- Problem with route rules in nuxt.config HOT 3
- How to copy file to folder .output after build(2) HOT 2
- Decode function for useCookie called for every cookie present
- Docs: Cannot get API Docs for nuxt.config.ts HOT 2
- Wrong status codes in server plugins HOT 3
- autoImport for utils directory doesn't work correctly. HOT 5
- Reactive object does not trigger asyncData HOT 1
- <script setup> does not run on Pages which where navigated to by <NuxtLink> HOT 2
- Compressing response breaking error page HOT 1
- Cannot set properties of null (setting '__vrv_devtools') HOT 5
- [Performance] Using this.$route inside a computed triggers reactivity while we are changing pages HOT 2
- PublicRuntimeConfig type not being recognized by eslint, only happens after nuxt 3.11.2 HOT 1
- 在文件内容没有变化的情况下,每次打包出来的构建产物javascript文件的hash值都不一致 HOT 3
- PostCSS breaking on adding tailwind plugin for nuxt-tour specifically, unable to start nuxt dev server HOT 1
- _How to run "useLazyAsyncData" on client-side only?_ Use the "clientSide" option. For example: Nuxt.useLazyAsyncData(objects, { clientSide: true });
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.js.