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

HTTPError: 404 Not Found from https://pypi.org/legacy/ #130

Closed
njzjz opened this issue Mar 16, 2023 · 3 comments · Fixed by #131
Closed

HTTPError: 404 Not Found from https://pypi.org/legacy/ #130

njzjz opened this issue Mar 16, 2023 · 3 comments · Fixed by #131
Labels
bug Something isn't working

Comments

@njzjz
Copy link

njzjz commented Mar 16, 2023

I got the following error when I use pypa/gh-action-pypi-publish@release/v1

ERROR    HTTPError: 404 Not Found from https://pypi.org/legacy/                 
         Not Found

My workflow is

      - uses: pypa/gh-action-pypi-publish@release/v1
        with:
          user: __token__
          password: ${{ secrets.pypi_password }}

Log:
https://github.com/deepmodeling/deepmd-kit/actions/runs/4433636725/jobs/7779438170#step:4:1

@njzjz
Copy link
Author

njzjz commented Mar 16, 2023

Per pypa/twine#389 (comment), it seems that the correct URL is https://upload.pypi.org/legacy/

default: https://pypi.org/legacy/

jaap3 added a commit to leukeleu/leukeleu-thumbor-multidir that referenced this issue Mar 16, 2023
gmarull added a commit to nrfconnect/doc-sphinx-ncs-theme that referenced this issue Mar 16, 2023
Ref. pypa/gh-action-pypi-publish#130

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
Illidanz added a commit to Illidanz/hacktools that referenced this issue Mar 16, 2023
@webknjaz webknjaz mentioned this issue Mar 16, 2023
2 tasks
@webknjaz
Copy link
Member

webknjaz commented Mar 16, 2023

Thank you for spotting and sending the bugfix, @njzjz 🙌

Your regression fix has been released under v1.8.1!
Restarting your workflow should succeed now, since you're using release/v1 and not a pinned version.

P.S. This is not required since it's the default value of the action:

user: __token__

(and with OIDC, the long-term token will stop being needed soon too)

@webknjaz webknjaz added the bug Something isn't working label Mar 16, 2023
Dexterp37 added a commit to Dexterp37/fontina that referenced this issue Oct 1, 2023
@jakirkham
Copy link

Per pypa/twine#389 (comment), it seems that the correct URL is https://upload.pypi.org/legacy/

default: https://pypi.org/legacy/


Would it make sense to document this somewhere?

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

Successfully merging a pull request may close this issue.

3 participants