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