问题排查概览
本页可帮助您查看、调试和修正 Chat 应用、卡片和对话框错误。
错误的显示方式
Google Chat 应用返回错误时,会显示如下所示:
- 显示“应用无响应”之类的消息系统显示“出了点问题”或“无法处理您的请求”。
- 应用无法正常运行。
- 系统不会显示任何消息,并且应用也不会响应。
当卡片返回错误时,会显示如下所示:
- 卡片的某个部分(例如 widget 或组件)未按预期显示或呈现。
- 系统未显示整个卡片。
- 对话框关闭、无法打开或无法加载。
虽然 Chat 界面中可能不会显示错误消息,但当您为 Chat 应用启用错误日志记录时,系统会提供描述性错误消息和日志数据,以帮助您修正错误。
调试和排查 Google Chat 错误
- 启用错误日志记录,以便 Google Chat 应用在发生错误时记录错误。
- 查询 Google Chat 的错误日志,以读取错误日志、查看错误发生频率,以及读取有助于您修正错误的描述性错误消息和日志数据。
- 了解如何修正常见错误:
- 调试 Chat 应用,以便逐步执行该应用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-16。
[null,null,["最后更新时间 (UTC):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"]]