Question

500 "Internal Server Error" with "UnknownError" response from Spaces API when uploading an object to a bucket?

I’m trying to use the Spaces REST api to upload an object, a jpg image. I got the authentication to work, but now I’m getting Error 500 “UnknownError”

PUT https://bucket-name.sgp1.digitaloceanspaces.com/wwwroot/sized_images/000-1234.0.450x450.jpg I’ve included Auth headers that seem to work…

I was getting Error 403 for awhile until I got the authentication right.

But this is my response: <?xml version=“1.0” encoding=“UTF-8”?><Error><Code>UnknownError</Code><BucketName>jewelry-store</BucketName><RequestId>tx00000000000000005d1d9-005ad80d38-4feff-sgp1a</RequestId><HostId>4feff-sgp1a-sgp</HostId></Error>

I’m using ASP.NET Core and testing it from my MacBook.

I’ve also tested the content with a text file, changing the Content-Type to text/plain, and I’ve tested it with image StreamContent, changing the Content-Type to image/jpeg.

I wonder if there’s a way to get a more specific error that what I got so I can figure out what I’m doing wrong.

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.

I would recommend opening a ticket with our support team. They can check on this and ensure that there is no widespread issue that could be causing the errors you are seeing.