Replies: 2 comments 1 reply
-
I have found the offending line of code: https://github.com/aboutcode-org/python-inspector/blob/main/src/python_inspector/utils_pypi.py#L1638 However, even after returning the correct URL, it is now returning a EDIT: |
Beta Was this translation helpful? Give feedback.
-
The pull request associated with the issue now has the changes including fixing the offending line above as well as making sure a wheel contains the repo's credentials when it attempts to be download. |
Beta Was this translation helpful? Give feedback.
-
So, using this fork related to this issue and
netrc
authentication -- python-inspector can in some way clearly find the package in the respective codeartifact repo, however, when attempting to download the wheel it gets a 403 Forbidden. It's not because it isn't authenticated, it's because the URL gets changed to:https://DOMAIN-AWS_ACCOUNT_ID.d.codeartifact.us-west-2.amazonaws.com/0.3.0/PACKAGE_XYZ_ABC-0.3.0-py3-none-any.whl
Whereas it should be:
https://DOMAIN-AWS_ACCOUNT_ID.d.codeartifact.us-west-2.amazonaws.com/0.3.0/pypi/PYPI_REPO/simple/PACKAGE_XYZ_ABC-0.3.0-py3-none-any.whl
The first URL is not a valid URL for AWS CodeArtifact so it makes sense that they would return a 403.
I've added several debug statements around the way to trace where the URL is being changed, however, I have not been able to track down exactly where it happens.
Beta Was this translation helpful? Give feedback.
All reactions