Команда gcloud init cli: ОШИБКА: сбой gcloud (ValueError): запрос содержит нулевой символ - PullRequest
0 голосов
/ 16 апреля 2019

Я пытаюсь инициализировать мои настройки gcloud для проекта. Но когда я запускаю команду gcloud init, выдает ошибку gcloud crash.

Ранее это работало, но внезапно сегодня эта команда потерпела крах. Я попробовал 'gcloud auth login' и вставил учетные данные, но все равно выдает ту же ошибку

    gcloud init
    Welcome! This command will take you through the configuration of gcloud.

    Settings from your current configuration [default] are:
    core:
    disable_usage_reporting: 'False'

    Pick configuration to use:
    [1] Re-initialize this configuration [default] with new settings
    [2] Create a new configuration
    Please enter your numeric choice:  1

    Your current configuration has been set to: [default]

    You can skip diagnostics next time by using the following flag:
    gcloud init --skip-diagnostics

    Network diagnostic detects and fixes local network connection issues.
    Checking network connection...done.
    Reachability Check passed.
    Network diagnostic passed (1/1 checks passed).

    ERROR: gcloud crashed (ValueError): the query contains a null character

    If you would like to report this issue, please run the following command:
    gcloud feedback

    To check gcloud for common problems, please run the following command:
    gcloud info --run-diagnostics

The actual results should be like below: 
    gcloud init

    Welcome! This command will take you through the configuration of gcloud.

    Settings from your current configuration [default] are:
    core:
    account: prajakta@gmail.com
    disable_usage_reporting: 'False'
    project: default-1234

    Pick configuration to use:
    [1] Re-initialize this configuration [default] with new settings
    [2] Create a new configuration
    Please enter your numeric choice:  1

    Your current configuration has been set to: [default]

    You can skip diagnostics next time by using the following flag:
    gcloud init --skip-diagnostics

    Network diagnostic detects and fixes local network connection issues.
    Checking network connection...done.
    Reachability Check passed.
    Network diagnostic passed (1/1 checks passed).

   Choose the account you would like to use to perform operations for
   this configuration:
   [1] prajakta@gmail.com
   [2] Log in with a new account
   Please enter your numeric choice:  1

   Pick cloud project to use:
   [1] default-1234
   [2] abc-project
   [3] Create a new project
   Please enter numeric choice or text value (must exactly match list
   item):  1

   Your current project has been set to: [default-1234].

   Your Google Cloud SDK is configured and ready to use!

1 Ответ

1 голос
/ 17 апреля 2019

Из вывода, который вы включили, похоже, он успешно завершен:

Your Google Cloud SDK is configured and ready to use!

Вы можете использовать какие-либо команды?

gcloud config list
gcloud auth list
gcloud projects list

Непонятно, какую операционную систему вы используете , но вероятно, что какой-либо зависимый фрагмент программного обеспечения был обновлен и вызвал сбой; и | или Cloud SDK (он же gcloud) обновился на вашем компьютере и сломан.

Возможно, вам лучше всего обратиться в службу поддержки Google Cloud или, если у вас нет контракта на поддержку, подать проблему в систему отслеживания проблем Google для gcloud здесь:

https://issuetracker.google.com/issues/new?component=187143

NB Вы включили свой адрес электронной почты и несколько своих проектов в свой вопрос, возможно, вы захотите отредактировать их, поскольку они не нужны, чтобы помочь ответить на вопрос.

...