Quentin123345 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

error when you gcloud auth login before you docker login first #436

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
do gcloud auth login before you ever do a docker login
try to gcloud docker pull redis

What is the expected output? What do you see instead?
expected:
"Error can't find .docker/config.json"

instead:
ERROR: gcloud crashed (ValueError): No JSON object could be decoded

What is the output of 'gcloud info'?

Please provide any additional information below.

Original issue reported on code.google.com by sep...@gmail.com on 21 Dec 2015 at 1:11

GoogleCodeExporter commented 8 years ago
Thank you for the bug report. 

I am able to reproduce this error by having an empty file where gcloud expects 
the docker config. It tries to read the empty file as json and errors when the 
file isn't valid json.

Better error handling is needed. In the mean time, deleting the file it is 
trying to read or replacing its contents with {} should work.

Original comment by stephe...@google.com on 22 Dec 2015 at 5:58