Meta Tech Provider
WhatsApp 错误 132012:消息模板参数格式不匹配
错误 132012 表示发送的参数值与消息模板定义的格式不符。包含 3 个变量的消息模板必须按顺序提供准确的 3 个正确类型参数,任何偏差都会触发此错误,而不是部分发送。
哪些内容必须匹配
全部都必须匹配,而且系统不会提示。不存在部分匹配。
- 数量:正文中有 3 个占位符,就必须提供 3 个正文参数,不能多也不能少。
- 顺序:参数按位置匹配,因此交换两个参数会让值出现在错误位置;如果类型不同,则会触发此错误。
- 类型:货币或日期参数有规定的对象格式,不能作为纯文本发送。
- 组件:标题、正文和按钮参数分别属于不同列表,不能合并成一个列表。
导致生产环境故障的编辑
编辑消息模板的人,往往不是调用 API 的人。有人为了让消息更清楚而添加变量,消息模板重新获批后,所有来自未变更集成的发送都会开始失败。
与其事后发现,不如提前防范。订阅消息模板状态 Webhook 后,编辑会作为事件送达;将消息模板的变量数量视为集成约定,并在变更时审核,就能避免一次措辞改进变成服务中断。
常见错误
- 为保险起见发送额外参数。参数过多和过少一样错误。
- 把按位置匹配的参数当成命名参数。它们只能按位置匹配。
- 编辑消息模板,却不检查发送参数的代码。
使用 EasyCoexistence 完成这些操作
EasyCoexistence 会将消息模板状态事件送达您的端点,因此 Business Manager 中的消息模板被编辑后,您可在下一次发送失败前发现。
常见问题
我应该发送多少个参数?
严格按照消息模板定义的数量,并按顺序发送。
可以发送额外参数吗?
不可以。参数过多和过少都会以同样方式失败。
为什么突然开始出现这个错误?
通常是因为消息模板被编辑,变量数量发生了变化。
参数有名称吗?
没有。参数按位置匹配,因此顺序很重要。
继续阅读
WhatsApp error 132000: parameter count mismatchError 132000 means the number of variables you sent does not match the number the template defines. How to count them and why it appears after an edit.WhatsApp error 132001: template does not existError 132001 means the template name and language pair you sent does not exist or is not approved. The language code is the usual cause.WhatsApp message templatesWhat templates are, the three categories, how variables work, how review goes, and why on Coexistence they can only be sent through the API.The message_template_status_update webhookMeta reports template approvals, rejections and disabling here. What each status means and why it removes the need to poll.WhatsApp error 132016: template is permanently disabledError 132016 means the template has been permanently disabled, usually after sustained negative feedback. Why approval is not permanent.WhatsApp error 131056: too many messages to one recipientError 131056 means too many messages were sent between your number and one recipient in a short period. What the pair rate limit protects against.
准备开始了吗?
几分钟即可设置 WhatsApp Coexistence,而不是几个月。应用会继续在手机上运行。
开始免费试用验证时间