I kept on getting this error when I try to post image to my space using nodejs { “message”: null, “code”: “NoSuchBucket”, “region”: null, “time”: “2021-03-07T09:26:39.174Z”, “requestId”: “tx000000000000042b7e140-0060449c4f-2a11d50-nyc3c”, “statusCode”: 404, “retryable”: false, “retryDelay”: 25.85127983870934, “storageErrors”: [] } I added my bucket name from spaces but I don’t know why I kept on getting this error. Please help
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 @tundeola,
Spaces is inter-operable with the AWS S3 API allowing you to take advantage of the existing ecosystem of tools for it. Below is a basic example demonstrating how to upload a file using the AWS JavaScript SDK, you can install it with:
The key is to set the
endpoint
to point to Spaces:Can you try uploading the image that way and see if it would work properly?