Google 表格触发器节点常见问题(Google Sheets Trigger node common issues)#
以下是一些 Google Sheets 触发器节点 的常见错误和问题,以及解决或排查它们的步骤。
🌐 Here are some common errors and issues with the Google Sheets Trigger node and steps to resolve or troubleshoot them.
等待触发事件卡住(Stuck waiting for trigger event)#
在使用 执行步骤 或 执行工作流 按钮测试 Google 表格触发节点时,执行可能会显示卡住,无法停止监听事件。如果发生这种情况,你可能需要退出工作流并重新打开它以重置画布。
🌐 When testing the Google Sheets Trigger node with the Execute step or Execute workflow buttons, the execution may appear stuck and unable to stop listening for events. If this occurs, you may need to exit the workflow and open it again to reset the canvas.
卡住的监听事件通常是由于 n8n 之外的网络配置问题造成的。具体来说,当你在反向代理后运行 n8n 而没有配置 WebSocket 代理时,经常会出现这种情况。
🌐 Stuck listening events often occur due to issues with your network configuration outside of n8n. Specifically, this behavior often occurs when you run n8n behind a reverse proxy without configuring websocket proxying.
要解决此问题,请检查你的反向代理配置(Nginx、Caddy、Apache HTTP 服务器、Traefik 等),启用 WebSocket 支持。
🌐 To resolve this issue, check your reverse proxy configuration (Nginx, Caddy, Apache HTTP Server, Traefik, etc.) to enable websocket support.
日期和时间列显示为数字(Date and time columns are rendering as numbers)#
Google 表格可以以几种不同的方式呈现日期和时间。
🌐 Google Sheets can render dates and times a few different ways.
序列号格式由Lotus 1-2-3推广,并被多种电子表格软件使用,它将日期表示为十进制数。整数部分(小数点左边的部分)表示自1899年12月30日以来的天数。小数部分(小数点右边的部分)表示一天24小时中的时间比例(例如,.5表示中午)。
🌐 The serial number format, popularized by Lotus 1-2-3 and used my types of spreadsheet software, represents dates as a decimal number. The whole number component (the part left of the decimal) represents the number of days since December 30, 1899. The decimal portion (the part right of the decimal) represents time as a portion of a 24-hour period (for example, .5 represents noon).
要为日期和时间值使用不同的格式,请在 Google 表格触发器节点中调整格式。当 触发条件 设置为 添加行 时可用此选项:
🌐 To use a different format for date and time values, adjust the format in your Google Sheet Trigger node. This is available when Trigger On is set to Row Added:
- 在画布上打开 Google 表格触发器节点。
- 选择 添加选项。
- 选择 日期时间呈现。
- 将 DateTime Render 更改为 Formatted String。
Google 表格触发器节点现在会将日期、时间、日期时间和持续时间字段按照其数字格式格式化为字符串。
🌐 The Google Sheets Trigger node will now format date, time, datetime, and duration fields as strings according to their number format.
数字格式取决于电子表格的区域设置。你可以通过打开电子表格并选择 文件 > 设置 来更改区域。在 常规 选项卡中,将 区域设置 设置为你偏好的区域。选择 保存设置 以调整数值。
🌐 The number format depends on the spreadsheet's locale settings. You can change the local by opening the spreadsheet and selecting File > Settings. In the General tab, set Locale to your preferred locale. Select Save settings to adjust the value.