Comments (4)
I got the same error message when the token scope is wrong.
Updating crates.io index
error: failed to invite owners to crate `sfz` on registry at https://crates.io
Caused by:
the remote server responded with an error (status 403 Forbidden): must be logged in to perform that action
Seems like crates.io returns the same error for different scenario. For 403 it's fine with returning fewer details, though maybe the error message could be more general?
Lines 74 to 78 in 0371322
Lines 57 to 60 in 0371322
That said, not sure if it is something wrong in the CLI. That part hasn't changed for a while.
from crates.io.
I just checked and the API token @metasim has created does not have the change owners token scope, which is most likely why the CLI command failed.
For 403 it's fine with returning fewer details, though maybe the error message could be more general?
yeah, that seems reasonable. we just reused the same error message that we had before token scopes got introduced, but we should probably adjust that to make people aware of that possibility.
from crates.io.
/cc @rust-lang/cargo
from crates.io.
Can't reproduce on my side. I've done the followings
- Tested with cargo version 1.76.0 and 1.77.2
- Created a change-owner scope token on my account (weihanglo)
cargo login
with that tokencargo owner --add github:rust-tw:jobs-board-maintainers
succeeded for my cratesfz
- Confirmed owner added on crates.io.
cargo owner --remove github:rust-tw:jobs-board-maintainers
succeeded for my cratesfz
- Confirmed owner removed on crates.io.
Could you try cargo logout
and then cargo login
again?
Also need more details from the server side.
from crates.io.
Related Issues (20)
- num-traits inconsistently reported as unavailable HOT 2
- 500 Internal Server Error trying to publish `embassy-usb`. HOT 2
- Dark mode missing avatar background HOT 2
- API tokens: Add "Copy" functionality HOT 2
- Accept https://crates.io/crate/<cratename> (singular)
- Inconsistent installation instructions for binaries HOT 1
- Publishing Crates Locally Fails Due to Unsupported put_opts Operation on a LocalFileSystem ObjectStore HOT 1
- Dark mode: Code blocks in lists retain inline style background HOT 1
- bug: `c`/`xml`/`rs` codeblocks are not syntax highlighted in READMEs.
- Failed to load Readme of crates HOT 2
- Backend test GitHub Action failing
- Spurious Percy test failures HOT 5
- db-dump backwards-incompatible changes HOT 1
- Support `<source media>` in Readme.md HOT 6
- Github login fails with invalid state parameter HOT 29
- Support yank a package with a message HOT 12
- Unknown extra binary listed for data-encoding-bin HOT 9
- Search works incorrectly HOT 2
- webmaster for https://crates.io/crates/clang-tidy-sarif - bad link from https://sarifweb.azurewebsites.net/ text HOT 2
- Dark Mode: Links without href are black on dark grey HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crates.io.