Giter Site home page Giter Site logo

[nitro] [uncaughtException] Failed to execute 'postMessage' on 'MessagePort': ArrayBuffer at index 0 is already detached. about nuxt.js HOT 3 OPEN

hoanghiep1x0 avatar hoanghiep1x0 commented on July 3, 2024
[nitro] [uncaughtException] Failed to execute 'postMessage' on 'MessagePort': ArrayBuffer at index 0 is already detached.

from nuxt.js.

Comments (3)

danielroe avatar danielroe commented on July 3, 2024

Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? 🙏

from nuxt.js.

hoanghiep1x0 avatar hoanghiep1x0 commented on July 3, 2024

I followed your advice to recreate a Nitro server but it did not encounter the same error as the issue.

Here is the Nitro instance I recreated: https://stackblitz.com/~/github.com/hoanghiep1x0/nitro-clone
The nitro-clone version is unchanged from https://stackblitz.com/~/github.com/hoanghiep1x0/nuxt3-project.
It runs normally on the local machine.

I am still not sure where the issue is occurring when running with Nuxt, as when trying to reproduce the issue, a different problem seems to arise.

[nitro] [uncaughtException] Failed to execute 'postMessage' on 'MessagePort': ArrayBuffer at index 0 is already detached.

My project appears to work normally, but if I do nothing on the website for about 5-15 minutes, there will be a write PIPE and read ETIMEDOUT error when making requests with ofetch.

When I try to recreate the issue, a different issue arises. Please help.

from nuxt.js.

hoanghiep1x0 avatar hoanghiep1x0 commented on July 3, 2024

This is my machine environment:

admin@Admins-MacBook-Pro nitro-clone % npx nuxi info  
Working directory: /Users/admin/nitro-clone                            1:04:11 PM
Nuxt project info: (copied to clipboard)                               1:04:11 PM
------------------------------
- Operating System: Darwin
- Node Version:     v18.20.3
- Nuxt Version:     -
- CLI Version:      3.11.1
- Nitro Version:    2.9.6
- Package Manager:  [email protected]
- Builder:          -
- User Config:      -
- Runtime Modules:  -
- Build Modules:    -
------------------------------

On my personal machine, everything seems normal with both recreated projects. Could you take a few minutes to see where the issue is?

from nuxt.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.