You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=> i saw here #1013 that __token__ should be used still an error occurrs:
-py3-none-any.whl ... failed
Error uploading to repository: XXX - Client error '403 ' for url 'XXX'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
My last try was
hatch -v publish -r artifactory_uri --user __token__ --auth secret_token
edit:
I can see in upload_artifact of hatch that in the response the message is
"status" : 401,\r\n "message" : "Wrong username was used"
So our artifactory server/repo doesnt support __token__ user ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i am trying to publish just via an auth token, the power shell script was this before (works)
$whlFile = Get-ChildItem -Path $OutputPath -Name | Select-Object -First 1$whlFile -replace ".{3}$ "
$whlUploadName =
$whlUploadName = $whlUploadName + $BuildId + ".whl"
Write-Host $whlUploadName
Invoke-WebRequest -Uri "artifactory_uri/$whlUploadName" -InFile $OutputPath$whlFile -Method PUT -Headers @{"Authorization" = "Bearer $ApiKey"} -UseBasicParsing
How to call hatch publish? What would be the user? I tried "Bearer", doesnt work
we use jfrog
https://jfrog.com/help/r/jfrog-artifactory-documentation/publish-pypi-packages-to-artifactory
=> i saw here #1013 that
__token__
should be used still an error occurrs:-py3-none-any.whl ... failed
Error uploading to repository: XXX - Client error '403 ' for url 'XXX'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
My last try was
hatch -v publish -r artifactory_uri --user
__token__
--auth secret_tokenedit:
I can see in upload_artifact of hatch that in the response the message is
"status" : 401,\r\n "message" : "Wrong username was used"
So our artifactory server/repo doesnt support
__token__
user ?Beta Was this translation helpful? Give feedback.
All reactions