Question

Space API Error: The AWS Access Key Id you provided does not exist in our records

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.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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