Receiving "SignatureDoesNotMatch" errors when using Spaces with Postman

September 24, 2017 6k views
Object Storage API

Very similar to the other ‘SignatureDoesNotMatch’ question but having issues with Postman,

So i’m trying to use postman to gain access to my files. I’ve set up the 'AccessKey’ and 'SecretKey’ pair within the API section in digital ocean but constantly getting ’<Error>
<Code>SignatureDoesNotMatch</Code>.....’

anyone had any luck working through postman to access object spaces?

9 comments
  • It’s seams like DO spaces it’s not very ready for production use. They say that supported only V2 signature version, but signing with V2 also does not work.

  • Hi there - I’m the product manager for Spaces. Thanks for letting us know that you ran into an issue.

    Would you be able to try again with a new access/secret key OR by regenerating an existing key?

    We in the last few days changed how key regeneration is done (we now regenerate the access key AND the secret) and using a new keypair (or regenerating an existing one again) is the likely fix for what you’ve reported.

    If for some reason that doesn’t work, please let us know.

  • I’ve tried again with a new access/secret, but sadly still getting the same result. Has anyone managed to use ‘put’ with spaces via postman to create a new file?

  • Hello there,

    I’m getting the same error via Transmit 5.

    @johngannon any idea when this may be solved? thanks

  • @antoniorosado Transmit just released v.5.0.5 which has a fix/fixes that allow it to work well with Spaces. Hope this helps.

  • Show 4 more comments
6 Answers

i got it working like this:

For: get https://nlrjdata.ams3.digitaloceanspaces.com/IMG_20190308_095139597.jpg

in the postman tab authorization :
Type: AWS Signature
AccessKey : CBKKZSJS4DLNY4ZEZLRF
SecretKey : dvtz0NE8I7HxOX6lJlroHTvaUiN/vhKtXy/kzmIK8SM
AWS Region : ams3
Service Name : s3
Session Token : myTok

Facing same issue using SociallyDev Spaces-API

Following Node.JS code is working for me. I suspect, we need to set up minimum 4 connection parameters.

*var AWS = require('aws-sdk');
exports.getBuckets = async function(req, res) 
{
  var options = {
    'endpoint' : 'https://nyc3.digitaloceanspaces.com',
    'accessKeyId' : 'XXXX',
    'secretAccessKey' : 'YYY,
    'region' : 'nyc3'
  };
  var s3 = new AWS.S3(options);
  s3.listBuckets(function(err, data) {
    if (err) console.log(err, err.stack); // an error occurred
    else     console.log(data);           // successful response
  });
};*
edited by asb

Was this resolved in the end please? I am using Transmit 5 and getting the SignatureDoesNotMatch error. Can see my bucket though.

Thanks

Auth fails with this error when the ‘x-amz-content-sha256’ header value is not set, might be relevant

Have another answer? Share your knowledge.