Trying to set up a Cargo registry, I followed this guide: https://forgejo.org/docs/latest/user/packages/cargo/
Then I generated a token using the Web interface at https://codeberg.org/user/settings/applications
When doing cargo publish, the token is rejected:
cargo publish --token=... --index="https://codeberg.org/dcz_pf/_cargo-index.git"
[...]
error: failed to publish to registry at https://codeberg.org/api/packages/dcz_pf/cargo
Caused by:
failed to get a 200 OK response, got 401
headers:
HTTP/2 401
content-type: text/plain; charset=utf-8
date: 2024年11月13日 09:39:52 GMT
content-length: 17
strict-transport-security: max-age=63072000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-frame-options: sameorigin
x-content-type-options: nosniff
body:
authGroup.Verify
Even creating a token with all permissions gives the same result.
The same problem was encountered before: #941
@tok did you manage to find a solution?
### Comment
Trying to set up a Cargo registry, I followed this guide: https://forgejo.org/docs/latest/user/packages/cargo/
Then I generated a token using the Web interface at https://codeberg.org/user/settings/applications
When doing `cargo publish`, the token is rejected:
```
cargo publish --token=... --index="https://codeberg.org/dcz_pf/_cargo-index.git"
[...]
error: failed to publish to registry at https://codeberg.org/api/packages/dcz_pf/cargo
Caused by:
failed to get a 200 OK response, got 401
headers:
HTTP/2 401
content-type: text/plain; charset=utf-8
date: 2024年11月13日 09:39:52 GMT
content-length: 17
strict-transport-security: max-age=63072000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-frame-options: sameorigin
x-content-type-options: nosniff
body:
authGroup.Verify
```
Even creating a token with all permissions gives the same result.
The same problem was encountered before: https://codeberg.org/Codeberg/Community/issues/941
@tok did you manage to find a solution?