疑難排解總覽問題
本頁面可協助您查看、偵錯及修正 Chat 應用程式、資訊卡和對話方塊錯誤。
錯誤的顯示方式
Google Chat 應用程式傳回錯誤時,會顯示以下訊息:
- 訊息類似「應用程式沒有回應」,畫面上顯示「發生錯誤」或「無法處理您的要求」。
- 應用程式無法正常運作。
- 系統不會顯示任何訊息,應用程式也不會回應。
資訊卡傳回錯誤時,會顯示如下訊息:
- 資訊卡的某些部分 (例如小工具或元件) 無法顯示或以不尋常的方式顯示。
- 整張資訊卡未顯示。
- 對話方塊關閉、無法開啟或無法載入。
雖然 Chat UI 可能不會顯示錯誤訊息,但當您啟用 Chat 應用程式的錯誤記錄功能時,系統會提供說明性錯誤訊息和記錄資料,協助您修正錯誤。
偵錯及排解 Google Chat 錯誤
- 開啟錯誤記錄功能,讓 Google Chat 應用程式在發生錯誤時記錄錯誤。
- 查詢 Google Chat 的錯誤記錄,即可讀取錯誤記錄、查看錯誤發生頻率,以及讀取說明性錯誤訊息和記錄資料,協助您修正錯誤。
- 瞭解如何修正常見錯誤:
- 對 Chat 應用程式偵錯,逐步執行應用程式。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-16 (世界標準時間)。
[null,null,["上次更新時間:2025-02-16 (世界標準時間)。"],[[["This page provides guidance on viewing, debugging, and resolving errors in Google Chat apps, cards, and dialogs."],["Google Chat errors can manifest as error messages, unexpected app behavior, or lack of response, while card errors might result in partial or complete rendering failures."],["Developers can leverage error logging, log querying, and troubleshooting resources to identify and fix errors in their Chat apps, cards, and dialogs."],["Specific guides are available to address common Chat app errors, card and dialog issues, and enable step-by-step debugging for comprehensive troubleshooting."]]],["This content details how to manage errors in Google Chat apps, cards, and dialogs. Errors manifest as unresponsive apps, missing or malfunctioning card elements, or closed/failed dialogs. To address this, enable error logging. Query error logs to identify the frequency and nature of errors. Resources are available to fix common app, card, and dialog issues, and a debug feature allows for step-by-step execution analysis.\n"]]