-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update aws and multer #474
Update aws and multer #474
Conversation
Hello @duggalsu , I review the PR, I am getting an error To review this PR
I am getting this errorapi-server | Error: Region is missing
api-server | at default (/app/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js:10:15)
api-server | at /app/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js:6:83
api-server | at /app/node_modules/@smithy/property-provider/dist-cjs/chain.js:12:39
api-server | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
api-server | at async coalesceProvider (/app/node_modules/@smithy/property-provider/dist-cjs/memoize.js:14:24)
api-server | at async /app/node_modules/@smithy/property-provider/dist-cjs/memoize.js:26:28
api-server | at async region (/app/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js:17:36)
api-server | at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/region-redirect-endpoint-middleware.js:6:32
api-server | at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/region-redirect-middleware.js:9:20
api-server | at async /app/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:7:26 To fix this error, we have to add |
- Updated axios version - Pinned auto-added buffer package required by parcel # Conflicts: # browser-extension/plugin/package-lock.json # browser-extension/plugin/package.json
# Conflicts: # browser-extension/plugin/package-lock.json
- Updated AWS SDK for JS packages - Updated multer-s3 package - Migrated AWS code to use current package version
- Updated aws-sdk client-s3 - Updated aws-sdk client-sesv2
9d8bde3
to
acdc5ab
Compare
Hey @aatmanvaidya , since the I have also updated the version again (non-breaking changes). |
okay so should I review this PR now? |
The new version update would not resolve this. Either of us will still have to troubleshoot this issue and how to resolve it using the latest AWS SDK |
folks, did you try setting the region ? try setting the environment variable AWS_REGION to "ap-south-1". so something like |
no will test this out |
@dennyabrain that worked, the region error has gone api-server | AccessDenied: Access Denied
api-server | at throwDefaultError (/app/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js:8:22)
api-server | at /app/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js:18:39
api-server | at de_PutObjectCommandError (/app/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:5721:12)
api-server | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
api-server | at async /app/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24
api-server | at async /app/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js:14:20
api-server | at async /app/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js:27:46
api-server | at async /app/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/flexibleChecksumsMiddleware.js:63:20
api-server | at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/region-redirect-endpoint-middleware.js:14:24
api-server | at async /app/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/region-redirect-middleware.js:9:20 I might need the access via IAM in AWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @duggalsu and @aatmanvaidya
I noticed that the IAM permissions on aws were not sufficient for this user to upload files on ogbv-plugin-dev.tattle.co.in. I made the changes and now it works. We're good to merge this.
@duggalsu the existing conflicts are related to package and package-lock.json. I think you'll be best to resolve those. |
* Update axios - Updated axios version - Pinned auto-added buffer package required by parcel # Conflicts: # browser-extension/plugin/package-lock.json # browser-extension/plugin/package.json * - Recreated package lock file # Conflicts: # browser-extension/plugin/package-lock.json * Update aws-sdk and multer-s3 - Updated AWS SDK for JS packages - Updated multer-s3 package - Migrated AWS code to use current package version * Update AWS SDK modules - Updated aws-sdk client-s3 - Updated aws-sdk client-sesv2
* Update axios - Updated axios version - Pinned auto-added buffer package required by parcel # Conflicts: # browser-extension/plugin/package-lock.json # browser-extension/plugin/package.json * - Recreated package lock file # Conflicts: # browser-extension/plugin/package-lock.json * Update aws-sdk and multer-s3 - Updated AWS SDK for JS packages - Updated multer-s3 package - Migrated AWS code to use current package version * Update AWS SDK modules - Updated aws-sdk client-s3 - Updated aws-sdk client-sesv2
multer-s3
package