Meta Tech Provider
WhatsApp 错误 131009:参数值无效
错误 131009 表示一个或多个参数值无效:字段存在且可识别,但其中的内容不被端点接受。大多数情况涉及语言代码、号码格式和枚举值。
最常出错的值
有 3 种格式占大多数,而且从阅读者角度看都像是正确的。
- 语言代码:消息模板创建时使用的是 en_US,却传入 en;或创建时使用的是 pt_BR,却传入 pt。
- 号码带有标点、开头的 0 或加号,但端点要求的是国际格式的纯数字。
- 枚举值的大小写错误,例如消息模板类别使用了小写。
- 日期或时间戳使用了端点文档未说明的格式。
为什么要特别注意语言代码
因为不同端点会返回不同的错误,导致人们追查错误方向。
发送不存在该名称对应语言的消息模板时,会返回 132001,看起来像是消息模板缺失。向先验证语言代码的端点提供格式错误的语言代码时,则会返回此错误。两者本质上是同一个错误,修复方法也相同:读取消息模板列表,复制准确的语言字符串,不要凭格式猜测。
常见错误
- 以为 en 和 en_US 可以互换。它们对应不同的消息模板。
- 发送带加号或标点的号码。应使用国际格式,且只含数字。
- 重试。这个值确定是错误的。
使用 EasyCoexistence 完成这些操作
EasyCoexistence 会列出消息模板的准确语言代码,因此发送的值就是 Meta 存储的值,而不是看似正确的值。
常见问题
哪个值不正确?
响应通常会指出参数。若没有,请先检查语言代码和号码格式。
号码应如何设置格式?
使用国际格式,仅含数字,不加加号或标点。
为什么同一个错误有时会返回 132001?
因为发送消息模板时会同时匹配名称和语言,未知组合会被视为缺少消息模板。
这是我的号码有问题吗?
不是。这个错误只涉及请求。
继续阅读
WhatsApp error 100: invalid parameterError 100 means a parameter was unsupported, misspelled or malformed. It is the broadest error on the platform and it never clears by retrying.WhatsApp error 131008: required parameter missingError 131008 means a parameter the endpoint requires was not included. Narrower than error 100, and usually one field away from working.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 Coexistence: the app and the API on one numberCoexistence runs the WhatsApp Business app and the Cloud API on the same number at once. What it changes, what it does not, and how a number gets connected.WhatsApp error 131051: unsupported message typeError 131051 means the message type is not supported. On a Coexistence number some types are unavailable, which is the common cause.WhatsApp error 131052: media download failedError 131052 means Meta could not download media from a message. What causes it and why asking the customer to resend is usually the fix.
准备开始了吗?
几分钟即可设置 WhatsApp Coexistence,而不是几个月。应用会继续在手机上运行。
开始免费试用验证时间