Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

cios config saveを初回実行時、エラーが発生しクライアント情報が保存されない #28

@optim-keisuke-sawa

Description

@optim-keisuke-sawa

事象

  • アカウント情報を保存するコマンドであるcios config saveを実行したが、以下のようなエラーが出てaccount.jsonにアカウント情報が保存されなかった。
  • 二度目の実行は成功した。
C:\Users\OPM006566>cios config save
? Name:  northpole
2023/01/22 15:24:21.608565 [�[31mERROR�[0m]  [[ utils.(*Assert).Log ]:  open C:\Users\OPM006566/.cios-cli/accounts.json: The system cannot find the file specified.]
2023/01/22 15:24:21.650189 [�[31mERROR�[0m]  [[ utils.(*Assert).Log ]:  open C:\Users\OPM006566/.cios-cli/accounts.json: The system cannot find the file specified.]
2023/01/22 15:24:21.651866 [�[31mERROR�[0m]  [[ utils.(*Assert).Log ]:  open C:\Users\OPM006566/.cios-cli/accounts.json: The system cannot find the file specified.]
2023/01/22 15:24:21.651866 [�[31mERROR�[0m]  [[ main.main ]:  open C:\Users\OPM006566/.cios-cli/accounts.json: The system cannot find the file specified.]

原因として考えられること

  • 詳細に調査していないが、./.cios-cli/account.jsonの作成タイミングが初回実行時は作成されておらずファイルが見つからないというエラーになっていると推測される。二度目は成功していたことからaccount.jsonが作成されていなかった場合の処理を追加するもしくはファイルの作成タイミングについて確認が必要。

実行環境

  • OS : Windows10
  • cios cli version: Could IoT OS CLI version 0.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions