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

Token request failed: the index produced an unexpected 503 response #239

Closed
tovrstra opened this issue May 19, 2024 · 6 comments
Closed

Comments

@tovrstra
Copy link

I'm trying to use this action but occasionally, not always, run into the following error:

Error: Trusted publishing exchange failure: 
Token request failed: the index produced an unexpected
503 response.

An example can be found here: https://github.com/reproducible-reporting/stepup-core/actions/runs/9147062777/job/25148013663

My workflow file causing this issue:

https://github.com/reproducible-reporting/stepup-core/blob/ac0f071cde3dbb8bf18b7fa2ae7f96a3f8b14fc5/.github/workflows/release.yaml

This workflow is based on the Python Packaging User Guide:

https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

(I've updated actions versions.)

@webknjaz
Copy link
Member

@woodruffw @di is something up with PyPI?

@webknjaz
Copy link
Member

@tovrstra https://status.python.org shows some error spikes. Perhaps, restarting the job will help.

@tovrstra
Copy link
Author

Thanks for the link. I hadn't realized it could just be a server-side issue.

@webknjaz
Copy link
Member

@woodruffw hey, this seems like an opportunity to update the error message to state that 5xx might be server errors and maybe even link the status page portal? WDYT?

@woodruffw
Copy link
Member

@woodruffw hey, this seems like an opportunity to update the error message to state that 5xx might be server errors and maybe even link the status page portal? WDYT?

SGTM, although I won't get to this until after June 5. Taking some time off, but happy to do it after then 🙂

@woodruffw
Copy link
Member

@woodruffw hey, this seems like an opportunity to update the error message to state that 5xx might be server errors and maybe even link the status page portal? WDYT?

Hmm, I checked and the full error message does emphasize that it might be a server error, it was just truncated above:

Token request failed: the index produced an unexpected
{status_code} response.

This strongly suggests a server configuration or downtime issue; wait
a few minutes and try again.

Agreed about the status page though, I'll send a PR for that.

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