By Jordan
Hello,
I’m trying to call HeadObject
using the AWS Go SDK. I’m getting a 501 status (not implemented) back from Spaces. Other operations seem to be working fine. If the HEAD operation is indeed not implemented in Spaces, will it be eventually?
Thanks!
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!
Heya, @anodyne
The HEAD Object operation is listed under “Read (Objects)”.
https://docs.digitalocean.com/products/spaces/reference/s3-compatibility/
As a suggestion, if you only need to confirm that an object exists or get its size, listing it by prefix gives you metadata like Size, Key, and LastModified without a direct head call.
Regards
Hey Jordan! Yeah, DigitalOcean Spaces doesn’t currently support the HeadObject
operation when using the AWS Go SDK — that’s why you’re seeing the 501 “Not Implemented” error. Other S3-style actions like GetObject
or ListObjects
work fine, but HeadObject
just isn’t available yet. You’ll need to do a small GetObject
call or use stored metadata as a workaround for now.
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.