トラブルシューティングの概要
このページでは、Chat アプリ、カード、ダイアログのエラーの表示、デバッグ、修正について説明します。
エラーの表示方法
Google Chat アプリがエラーを返すと、次のように表示されます。
- 「アプリが応答していません」などのメッセージが表示される。「エラーが発生しました」または「リクエストを処理できません」と表示される。
- アプリが想定どおりに動作しない。
- メッセージが表示されず、アプリが応答しない。
カードがエラーを返すと、次のように表示されます。
- カードの一部(ウィジェットやコンポーネントなど)が表示されない、または想定外の表示になる。
- カード全体が表示されない。
- ダイアログが閉じる、開かない、読み込まれない。
エラー メッセージが Chat UI に表示されない場合があります。ただし、Chat アプリのエラー ロギングがオンになっている場合は、エラーの修正に役立つ説明的なエラー メッセージとログデータが利用できます。
Google Chat のエラーのデバッグとトラブルシューティング
- エラー ロギングを有効にして、Google Chat アプリでエラーが発生したときにログに記録します。
- Google Chat のエラーログをクエリして、エラーログの読み取り、エラーの発生頻度の確認、エラーの修正に役立つ説明的なエラー メッセージとログデータの読み取りを行います。
- 一般的なエラーの修正方法は次のとおりです。
- Chat 用アプリをデバッグして、手順を追って実行します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-16 UTC。
[null,null,["最終更新日 2025-02-16 UTC。"],[[["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"]]