Report this

What is the reason for this report?

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

Posted on April 19, 2018

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.