nx-aws icon indicating copy to clipboard operation
nx-aws copied to clipboard

Error starting v3.2.0: `endpointV2Middleware is not found when adding regionRedirectEndpointMiddleware middleware before endpointV2Middleware`

Open alin-plamadeala opened this issue 1 year ago • 0 comments

Since updating to version 3.2.0 we have the following error:

Error: endpointV2Middleware is not found when adding regionRedirectEndpointMiddleware middleware before endpointV2Middleware
    at /node_modules/@smithy/middleware-stack/dist-cjs/index.js:154:17
    at Array.forEach (<anonymous>)
    at getMiddlewareList (/node_modules/@smithy/middleware-stack/dist-cjs/index.js:143:31)
    at Object.resolve (/node_modules/@smithy/middleware-stack/dist-cjs/index.js:297:32)
    at PutObjectCommand.resolveMiddleware (/node_modules/@aws-sdk/client-s3/dist-cjs/commands/PutObjectCommand.js:39:22)
    at S3Client.send (/node_modules/@smithy/smithy-client/dist-cjs/index.js:110:29)
    at Upload.__uploadUsingPut (/node_modules/@aws-sdk/lib-storage/dist-cjs/Upload.js:66:57)
    at Upload.__doConcurrentUpload (/node_modules/@aws-sdk/lib-storage/dist-cjs/Upload.js:128:39)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)


 >  NX   Storage Cache: Upload error - Error: endpointV2Middleware is not found when adding regionRedirectEndpointMiddleware middleware before endpointV2Middleware

The config used is:

NXCACHE_AWS_ACCESS_KEY_ID=key
NXCACHE_AWS_SECRET_ACCESS_KEY=key
NXCACHE_AWS_BUCKET=bucket
NXCACHE_AWS_REGION=eu-west-1

When rolling back to 3.1.0, everything works.

alin-plamadeala avatar Feb 02 '24 10:02 alin-plamadeala