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

"Unable to locate build via Github Actions API" error with v3 uploader #1138

Closed
akuzminsky opened this issue Oct 19, 2023 · 4 comments
Closed

Comments

@akuzminsky
Copy link

It broke recently, one or two days ago

[2023-10-19T14:36:13.224Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.7.0&token=*******&branch=update-deps&build=6576154612&build_url=https%3A%2F%2Fgithub.com%2Ftwindb%2Fbackup%2Factions%2Fruns%2F6576154612%2Fjob%2F17865012444&commit=0af25421531eae0c47c09e85aa2dce91d465c655&job=Tests&pr=417&service=github-actions&slug=twindb%2Fbackup&name=&tag=&flags=&parent=
[2023-10-19T14:36:13.224Z] ['verbose'] Passed token was 0 characters long
[2023-10-19T14:36:13.224Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.7.0&branch=update-deps&build=6576154612&build_url=https%3A%2F%2Fgithub.com%2Ftwindb%2Fbackup%2Factions%2Fruns%2F6576154612%2Fjob%2F17865012444&commit=0af25421531eae0c47c09e85aa2dce91d465c655&job=Tests&pr=417&service=github-actions&slug=twindb%2Fbackup&name=&tag=&flags=&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2023-10-19T14:36:13.458Z] ['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: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
[2023-10-19T14:36:13.458Z] ['verbose'] The error stack is: Error: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
    at main (/snapshot/repo/dist/src/index.js)
    at process.processTicksAndRejections (node:internal/process/task_queues:[95](https://github.com/twindb/backup/actions/runs/6576154612/job/17865012444#step:5:96):5)
[2023-10-19T14:36:13.458Z] ['verbose'] End of uploader: 708 milliseconds

https://github.com/twindb/backup/actions/runs/6576154612/job/17865012444

@akuzminsky
Copy link
Author

@thomasrockhu-codecov
Copy link
Contributor

thomasrockhu-codecov commented Oct 19, 2023

@akuzminsky Please upload with the Codecov repository upload token to resolve issue, you will need to add the CODECOV_TOKEN which can be found in the settings tab in Codecov

@akuzminsky
Copy link
Author

Was it a change in behavior? The same job succeeded on 17th Oct but failed on 19th.

@Czaki
Copy link

Czaki commented Oct 25, 2023

@akuzminsky Please upload with the Codecov repository upload token to resolve issue, you will need to add the CODECOV_TOKEN which can be found in the settings tab in Codecov

this doe not work for public repositories where pull requests come from the fork.

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