chilts/awssum

Body returned empty on glacier.InitiateJob

Closed this issue · 1 comments

On Glacier service.

I try to list archives on my vault.

glacier.InitiateJob({
    VaultName: vault,
    Type: 'archive-retrieval'
}, function(err, data){
        // err.Header.StatusCode == 404
        // err.Body == ''
});

i receive an 404 error and i don''t know why.
After activate debug (an setter would be a good idea), my err.Body are finally not empty.
And i have precious information like err.Body.Code doc aws error and message !

It's probably better if there aren't extractBody : none

Finally, my vault was too young for archive retrieval

Initiate job has no body in the response:

If you want to list your jobs, then you need to do a ListJobs:

Cheers,
Andy