By Marc Durham
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.
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!
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.
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.