server icon indicating copy to clipboard operation
server copied to clipboard

Wandb local - API key must be 40 characters long, yours was 58

Open rakesh-sodha opened this issue 2 years ago • 7 comments

Hi Team,

I am trying to perform Visualize training in your own ML project quick start for Integrate W&B with any Python script. when I copy and paste local API Key from http://localhost:8080/authorize and paste in the command it gives an error:

wandb: ERROR API key must be 40 characters long, yours was 58

Kindly suggest how to get 40 char API key.

Thanks & Regards, Rakesh

rakesh-sodha avatar Jun 06 '22 13:06 rakesh-sodha

Hey Rakesh, there must be something funky with the way your copying the key. Our api keys are always 40 characters long. With local deployments there's always a prefix, so it should look like: local-X(*40). Can you try pasting the key into a text editor and see if you're somehow copying some extra characters?

vanpelt avatar Jun 06 '22 16:06 vanpelt

Hey Chris,

Thank you for the quick response. There was indeed some extra characters appended during copy. It worked while copying to text-editor and then performing the same steps.

Thanks & Best Regards, Rakesh

rakesh-sodha avatar Jun 06 '22 16:06 rakesh-sodha

@rakesh-sodha good to know, I wonder if we can somehow prevent this. Can you share what browser / OS you're using? If we can reproduce we might be able to prevent other users getting confused like this.

vanpelt avatar Jun 06 '22 17:06 vanpelt

Hi @vanpelt

Browser Safari & macOS Monterey v12.4 (iTerm cmd)

Best Regards, Rakesh

rakesh-sodha avatar Jun 07 '22 10:06 rakesh-sodha

@rakesh-sodha ,

Thank you for providing info. We will attempt to reproduce.

I did a search online to see if there are any known issues with iTerm cmd and a few hits came up regarding additional characters being added when pasting to it. Some have suggested to use reset in the terminal window to fix the problem. In the meantime we will attempt to reproduce.

MBakirWB avatar Jun 16 '22 23:06 MBakirWB

WandB Internal User commented: rakesh-sodha commented: Hi @vanpelt

Browser Safari & macOS Monterey v12.4

Best Regards, Rakesh

exalate-issue-sync[bot] avatar Jun 16 '22 23:06 exalate-issue-sync[bot]

https://stackoverflow.com/questions/64093979/weights-and-biases-login-and-network-errors i tried the above solution and it work for me

Xccanxin avatar Dec 23 '22 10:12 Xccanxin