Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: stream is not readable after adding includeUnparsed: true, to middlewares.js #36

Open
MindDesign opened this issue May 28, 2023 · 0 comments

Comments

@MindDesign
Copy link

After installing Strapi Plugin Shopify and adding the configuration as explained in the documentation, I got an error when trying to log in to the Strapi admin:

[2023-05-28 20:03:27.225] error: stream is not readable
InternalServerError: stream is not readable
    at readStream (/home/tommy/projects/my-project/strapi.my-project.no/node_modules/raw-body/index.js:185:17)
    at executor (/home/tommy/projects/my-project/strapi.my-project.no/node_modules/raw-body/index.js:120:5)
    at new Promise (<anonymous>)
    at getRawBody (/home/tommy/projects/my-project/strapi.my-project.no/node_modules/raw-body/index.js:119:10)
    at /home/tommy/projects/my-project/strapi.my-project.no/node_modules/co-body/lib/json.js:41:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/tommy/projects/my-project/strapi.my-project.no/node_modules/@strapi/strapi/lib/middlewares/body.js:42:9
    at async /home/tommy/projects/my-project/strapi.my-project.no/node_modules/@strapi/strapi/lib/middlewares/logger.js:9:5
    at async /home/tommy/projects/my-project/strapi.my-project.no/node_modules/@strapi/strapi/lib/middlewares/powered-by.js:16:5
    at async cors (/home/tommy/projects/my-project/strapi.my-project.no/node_modules/@koa/cors/index.js:107:16)

I tried to remove the middlewares.js configuration, and I was able to log in.

Project information

┌────────────────────┬──────────────────────────────────────────────────┐
│ Time               │ Sun May 28 2023 20:03:40 GMT+0200 (Central Euro… │
│ Launched in        │ 1494 ms                                          │
│ Environment        │ development                                      │
│ Process PID        │ 5253                                             │
│ Version            │ 4.10.6 (node v18.13.0)                           │
│ Edition            │ Community                                        │
│ Database           │ sqlite                                           │
└────────────────────┴──────────────────────────────────────────────────┘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant