Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid upload ID error is not explicit enough #18

Open
jonahkagan opened this issue Oct 30, 2013 · 2 comments
Open

Invalid upload ID error is not explicit enough #18

jonahkagan opened this issue Oct 30, 2013 · 2 comments

Comments

@jonahkagan
Copy link

I was getting an error from Knox when creating an upload that said 'Invalid upload ID'. Looking at the code, this occurs when the response from AWS is missing the field UploadId:

if (!body.UploadId) return callback('Invalid upload ID');
.

The error message suggests that this is a user error (i.e. that the user passed in an invalid upload id), when really the error is that the response from AWS is missing an upload id.

I inserted some logging to figure out the cause of the problem, and in my case it was due to an invalid AWS Access Key Id. Here's the body of the response:

{ Code: 'InvalidAccessKeyId',
  Message: 'The AWS Access Key Id you provided does not exist in our records.',
  RequestId: <some string>,
  HostId: <some string>,
  AWSAccessKeyId: <my bad key>}

It would be nice to either see this body when the error occurs or at least have a more explicit error message that suggests the cause of the issue. I'm happy to submit a pull request with a fix if you have an idea of how you'd want to fix it.

@mikermcneil
Copy link
Collaborator

@jonahkagan I think that'd be a great addition, but Im just some dude

@rvaiya
Copy link

rvaiya commented Dec 19, 2014

@mikermcneil it's the dude's that make the difference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants