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 Unauthorized8 Replies
(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
hmm are you following a guide? we removed relying on .env, we might have missed updating some of our docs.
hm wait i’m not relying on it, it was there residually
i just deleted it and the error persists
you just got started with rivet today, right?
as in you ran “rivet init” earlier today
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
i have a hunch, you’re using godot right?
yes
wait the optimal solution here is not to better communicate 401s nvm
has this happened again?