nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

strapi cms keeps on crashing when developing on localhost with a node js internal error #4304

Closed AkshayVerma-Ipsator closed 7 months ago

AkshayVerma-Ipsator commented 7 months ago

Details

node:internal/assert:14
    throw new ERR_INTERNAL_ASSERTION(message);
    ^

Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

    at new NodeError (node:internal/errors:405:5)
    at assert (node:internal/assert:14:11)
    at internalConnectMultiple (node:net:1118:3)
    at Timeout.internalConnectMultipleTimeout (node:net:1687:3)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7) {
  code: 'ERR_INTERNAL_ASSERTION'
}

Node.js v20.6.1

Node.js version

v20.6.1

Example code

No response

Operating system

Windows

Scope

runtime

Module and version

Not applicable.

preveen-stack commented 7 months ago

@nodejs/core PTAL

ronag commented 7 months ago

@ShogunPanda

cclauss commented 7 months ago

What command was typed? Please provide the full error log.

GeoffreyBooth commented 7 months ago

A stack trace isn't enough. Please provide steps to reproduce.

AkshayVerma-Ipsator commented 7 months ago
npx create-strapi-app@latest my-project
# 'npx' runs a command from an npm package
# 'create-strapi-app' is the Strapi package
# '@latest' indicates that the latest version of Strapi is used
# 'my-project' is the name of your Strapi project

install the strapi project then run 
npm run develop

I was migrating data from WordPress headless cms to strapi headless cms and for that, I developed a code that fetches the data from WordPress and posts the data to strapi. it may run smoothly for a while if it is not fetching anything but after doing continuous 50-60 crud operations like post from the scripts it crashes in between only.

GeoffreyBooth commented 7 months ago
docker run -it node:20 bash
npx create-strapi-app@latest my-project
Need to install the following packages:
create-strapi-app@4.15.5
Ok to proceed? (y)
? Choose your installation type Quickstart (recommended)
Creating a quickstart project.
Creating a new Strapi application at /my-project.
Creating files.
Dependencies installed successfully.
Initialized a git repository.

Your application was created at /my-project.

Available commands in your project:

  yarn develop
  Start Strapi in watch mode. (Changes in Strapi project files will trigger a server restart)

  yarn start
  Start Strapi without watch mode.

  yarn build
  Build Strapi admin panel.

  yarn strapi
  Display all available commands.

You can start by doing:

  cd /my-project
  yarn develop

Running your Strapi application.

> my-project@0.1.0 develop
> strapi develop

⠋ Building build context
⠙ Building build context[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (118ms)
⠸ Creating adminSegmentation fault

This could be a bug in Strapi. I suggest you open an issue with them. For Node to resolve this, we’ll need a minimal reproduction that can demonstrate the issue without dependencies.

vtf6259 commented 7 months ago

You would want to open an issue on the main repo https://github.com/nodejs/node

cclauss commented 7 months ago

Let's open one on https://github.com/strapi/strapi/issues instead because they have seen this issue twice https://github.com/nodejs/help/issues/4304#issuecomment-1831936744 yet it is still not fixed.

This is caused by either a bug in Node.js or incorrect usage of Node.js internals.

I suspect this is the latter.

tniessen commented 7 months ago

This is a known bug in the implementation of Happy Eyeballs. There are tons of issues about this in the main repository.

ShogunPanda commented 7 months ago

I confirm. I'll tackle this starting on Monday, finally.