By sbamniya23
I am trying to upload files to DO spaces, using NodeJS. I am following thistutorial to generate space keys. but when I am trying to upload the files using AWS-SDK it returns error.
InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.
at Request.extractError (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\services\s3.js:714:35)
at Request.callListeners (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
at Request.emit (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\request.js:688:14)
at Request.transition (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\state_machine.js:14:12)
at D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request.<anonymous> (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\request.js:38:9)
at Request.<anonymous> (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\request.js:690:12)
at Request.callListeners (D:\upwork\Oh-D\media-upload\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
I have tried generating and using the different keys, but it doesn’t work.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
This sounds like either the key is not correct or the endpoint that you are using is not correct.
Can you share the code snippet here? Make sure to hide any sensitive information before posting the reply.
On another note, here is a step-by-step tutorial on how to set up Node.js with DigitalOcean Spaces:
https://www.digitalocean.com/community/tutorials/how-to-upload-a-file-to-object-storage-with-node-js
Regards, Bobby
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.