Wandb: ERROR Error while calling W&B API: (<Response [500]>)

Hi,

I’ve just started to use wandb and I love it. I use v 0.12.17 and the code below to log from a json file that contains my key, because I don’t want to expose it to the public (I have my script in Github)

wandb_path = Path('~/.wandb/wandb.json').expanduser()
with open(wandb_path) as fp:
    mykey = json.load(fp)['key']
wandb.login(key = mykey)

I’m able to login, but after a few seconds, I get the following error message:

wandb: ERROR Error while calling W&B API: json: cannot unmarshal array into Go value of type map[string]interface {} (<Response [500]>)

Any ideas on how to solve it?

Thanks

Jose

Hey @jguzman, can you try setting the WANDB_API_KEY environment variable. That way you won’t need to call the wandb.login() function.

Hey @jguzman I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

1 Like

Thank you very much for your assistance. That worked like a charm!!

Glad to hear that! Have a great weekend!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.