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

Can't upload from AWS CodeBuild - 400 - Invalid request parameters #1050

Closed
lrodrigo-cluey opened this issue May 8, 2023 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@lrodrigo-cluey
Copy link

Describe the bug
I'm getting an error when trying to upload from AWS CodeBuild:
['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 400 - Invalid request parameters

To Reproduce
Steps to reproduce the behavior:

  1. Create AWS CodeBuild project with aws/codebuild/standard:6.0
  2. Try to upload with ./codecov -t $TOKEN

Expected behavior
Should upload coverage.

Screenshots
image

@lrodrigo-cluey lrodrigo-cluey added the bug Something isn't working label May 8, 2023
@lrodrigo-cluey
Copy link
Author

An update on this one. Looks like the issue is with the commit parameter.
If I manually change it with -C some_valid_sha it works fine.

@drazisil-codecov
Copy link
Contributor

@lrodrigo-cluey

return args.sha || envs.CODEBUILD_RESOLVED_SOURCE_VERSION || ''

It's possible the env we are checking has changed, or is empty in certain cases. Are you able to check?

@lrodrigo-cluey
Copy link
Author

@drazisil-codecov it is returning some value, you can check that in my screenshot (...&commit=pc5T...)
I believe the issue is that the sha is invalid, because it works fine if I manually set it with -C.

@drazisil-codecov
Copy link
Contributor

@drazisil-codecov it is returning some value, you can check that in my screenshot (...&commit=pc5T...) I believe the issue is that the sha is invalid, because it works fine if I manually set it with -C.

Can you check and see if there is a better env we can check?

@trent-codecov
Copy link

Closing for lack of input. Please reopen with further details if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants