401s from the CLI

Hi! Whenever I try to run any CLI command I get the following error: rivet_cli_core::error::Error::InspectFail inspect fail: error in response: status code 401 Unauthorized
8 Replies
malted
maltedOP2y ago
(It’s cargo installed) I have a .env file with the token in it (prob irrelevant) and I have it set as RIVET_TOKEN in the shell env
Nathan
Nathan2y ago
hmm are you following a guide? we removed relying on .env, we might have missed updating some of our docs.
malted
maltedOP2y ago
hm wait i’m not relying on it, it was there residually i just deleted it and the error persists
Nathan
Nathan2y ago
you just got started with rivet today, right? as in you ran “rivet init” earlier today
malted
maltedOP2y ago
wait okay, i just unlinked, removed the env var, initted again and it worked. i think the 401 is a bit confusing messaging-wise, i’ll make a PR sorry about that! i don’t know why the old token was invalidated
Nathan
Nathan2y ago
i have a hunch, you’re using godot right?
malted
maltedOP2y ago
yes wait the optimal solution here is not to better communicate 401s nvm
Nathan
Nathan2y ago
has this happened again?

Did you find this page helpful?