Skip to content

🐞 Bug: InternalServerError: stream is not readable when deploying to AWS (works locally) #47

@abhijit-hl

Description

@abhijit-hl

When deploying Strapi with strapi-plugin-cache in an AWS environment (Kubernetes pods), the plugin throws the following error:

InternalServerError: stream is not readable at readStream (/opt/node_modules/strapi-cache/node_modules/raw-body/index.js:185:17) at executor (/opt/node_modules/strapi-cache/node_modules/raw-body/index.js:120:5) at new Promise (<anonymous>) at Object.getRawBody [as default] (/opt/node_modules/strapi-cache/node_modules/raw-body/index.js:119:10) at middleware (/opt/node_modules/strapi-cache/dist/server/index.js:232:52)

This does not occur in local development but consistently fails in production deployment on AWS.

Environment:

Strapi version: v5.14

strapi-cache plugin version: 1.5.5

Deployment: AWS (Kubernetes pods)

Node: 18.19.2

OS: Amazon Linux (EKS)

Works fine locally on Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions