Anyone had challenges connecting from wk to the trial region when connecting from the UK? I'm just giving the quickstart a go. I've followed the instructions for creating the client role and API client, copied the token, but I get a 401 error.
Error: validating token via /users/me: API error 401: Unauthorized A 401 here usually means one of: - wrong region: a valid token for a different region than "trial" fails against its base URL — re-run and select the matching region, or pass --base-url - expired or insufficiently scoped token - token truncated on paste
I've tried running wk auth login --region trial in interactive mode, as well as pasting in the token with the --token flag. I also tried explicitly setting --base-url. In any case. If anyone has any thoughts to share, I'd much appreciate it.
Hi Peter, ideally this command(wk auth login --region trial) itself should work. We don't need to pass the -- base-url. I would suggest you to check the token once.
Yeah. Using --base-url was a bit of a Hail Mary attempt to get it to work. I'm unsure exactly how I'd "check" the token. Is there a validator? The only thing peculiar about it is that it begins with wrkatrial instead of wrk as stated in the quick start. But I chalked that up to that being because I was in the developer sandbox, plus it aligned with the URL.
I keep getting the following error message when trying to login with the wk cli. I have tested all possible combinations of the key (which starts with wrkaeu-), but i keep getting the 401.
wk auth login --region eu
API token:
Error: validating token via /users/me: API error 401: Unauthorized
A 401 here usually means one of:
- wrong region: a valid token for a different region than "eu" fails against its base URL — re-run and select the matching region, or pass --base-url
- expired or insufficiently scoped token
- token truncated on paste