對命令列上的轉換進行故障診斷 - Amazon Q Developer

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

對命令列上的轉換進行故障診斷

以下資訊可協助您針對使用 Amazon Q Developer 在命令列上轉換應用程式時的常見問題進行疑難排解。

為什麼我的承載字符無法重新整理?

如果您看到下列錯誤,表示您需要重新整理用於身分驗證的承載字符。

Refreshing bearer token ('Error refreshing bearer token due to: ', InvalidGrantException('An error occurred (InvalidGrantException) when calling the CreateToken operation: ')) ('Error getting bearer token due to: ', RuntimeError(('Error refreshing bearer token due to: ', InvalidGrantException('An error occurred (InvalidGrantException) when calling the CreateToken operation: '))))

若要解決此錯誤,請執行下列命令:

rm ~/.aws/qcodetransform/credentials.json

移除過時的登入資料檔案後,請qct transform再次執行 以重新啟動轉換。

為什麼不使用最新版本的命令列工具?

當您下載新版本的命令列工具進行轉換時,有時舊版本的工具仍會使用。

若要讓您使用最新版本的工具,請下載最新版本。然後,根據機器架構,使用解壓縮工具的路徑執行下列命令:

Linux_aarch64
pip install <path/to/unzipped-tool>/Linux_aarch64/amzn_qct_cli-1.2.0-py3-none-any.whl --force-reinstall
Linux_x86_64
pip install <path/to/unzipped-tool>/Linux_x86_64/amzn_qct_cli-1.2.0-py3-none-any.whl --force-reinstall
注意

如果您使用較舊版本的命令列工具進行轉換,請將 1.2.0取代為您下載的版本