Skip to content

WhatsApp Business Cloud 节点常见问题(WhatsApp Business Cloud node common issues)#

以下是 WhatsApp Business Cloud 节点 的一些常见错误和问题,以及解决或排查它们的步骤。

🌐 Here are some common errors and issues with the WhatsApp Business Cloud node and steps to resolve or troubleshoot them.

请求错误 - 请检查你的参数(Bad request - please check your parameters)#

当 WhatsApp Business Cloud 因参数问题拒绝你的请求时,就会出现此错误。当使用 发送模板 操作时,如果你发送的数据与模板的格式不匹配,这种情况很常见。

🌐 This error occurs when WhatsApp Business Cloud rejects your request because of a problem with its parameters. It's common to see this when using the Send Template operation if the data you send doesn't match the format of your template.

要解决此问题,请查看你的 消息模板 中的参数。注意每个参数的数据类型以及它们在模板中定义的顺序。

🌐 To resolve this issue, review the parameters in your message template. Pay attention to each parameter's data type and the order they're defined in the template.

检查 n8n 映射到模板参数的数据。如果你使用表达式来设置参数值,请检查输入数据,确保每个项目都解析为有效值。你可能需要使用 编辑字段(设置)节点设置备用值 来确保发送的值格式正确。

🌐 Check the data that n8n is mapping to the template parameters. If you're using expressions to set parameter values, check the input data to make sure each item resolves to a valid value. You may want to use the Edit Fields (Set) node or set a fallback value to ensure you send a value with the correct format.

处理非文本媒体(Working with non-text media)#

WhatsApp Business Cloud 节点可以处理非文本消息和媒体,例如图片、音频、文档等。

🌐 The WhatsApp Business Cloud node can work with non-text messages and media like images, audio, documents, and more.

如果你的操作包含 输入数据字段名称属性名称 参数,请将其设置为字段名称本身,而不是在表达式中引用数据。

🌐 If your operation includes a Input Data Field Name or Property Name parameter, set this to the field name itself rather than referencing the data in an expression.

例如,如果你尝试发送一个“图片”类型的消息,并且“获取图片来源”设置为“n8n”,请将“输入数据字段名称”设置为像 data 这样的字段名称,而不是像 {{ $json.input.data }} 这样的表达式。

🌐 For example, if you are trying to send a message with an "Image" MessageType and Take Image From set to "n8n", set Input Data Field Name to a field name like data instead of an expression like {{ $json.input.data }}.