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: |
1 reply
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
So, using this fork related to this issue and
netrcauthentication -- 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.whlWhereas 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.whlThe 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.
All reactions