本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
對命令列上的轉換進行故障診斷
以下資訊可協助您針對使用 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
再次執行 以重新啟動轉換。
為什麼不使用最新版本的命令列工具?
當您下載新版本的命令列工具進行轉換時,有時舊版本的工具仍會使用。
若要讓您使用最新版本的工具,請下載最新版本。然後,根據機器架構,使用解壓縮工具的路徑執行下列命令:
注意
如果您使用較舊版本的命令列工具進行轉換,請將 1.2.0
取代為您下載的版本。