调用发送应用消息接口返回错误 ok. Warning: wrong json format

企业微信 文章 2021-01-27 16:41 4277 0 全屏看文

AI助手支持GPT4.0

调用发送应用消息接口返回错误 ok. Warning: wrong json formatCalling the sending application message interface returns an error ok. Warning: wrong json format

调用发送应用消息接口返回错误 ok. Warning: wrong json format
今天下午调用发送应用消息接口返回错误 ok. Warning: wrong json format,无法接收到消息。 同样的接口和代码逻辑,中午1206分钟还能正常收到,麻烦帮忙看下是什么问题?Array(    [toparty] => 4    [msgtype] => text    [agentid] => 1000003    [text] => Array        (            [content] => 【业务监控报警】测试数据回传(测试消息,忽略)        )    [safe] => 0){"errcode":0,"errmsg":"ok. Warning: wrong json format. ","invaliduser":""}

Calling the sending application message interface this afternoon returned the error OK. Warning: wrong JSON format, unable to receive the message. The same interface and code logic can be received at 12:06 noon. Please help me to see what the problem is? Array ([toParty] = > 4 [msgtype] = > text [AgentID] = > 1000003 [text] = > array ([content] = > [service monitoring alarm] test data return (test message, ignored)) [safe] = > 0) {"errCode": 0, "errmsg": "OK. Warning: wrong JSON format.", "invaliduser": "}

回答:

企业微信运营专员-千夜:

你好,部门id没有加双引号,这里要求应该是字符串形式

lyx:

你这个是数组,发送应用消息要求发送json数据。

另我们这边不少开发和产品就自己组建了群,三百多号同行。有做SaaS的有做定制的,流程不明白,互帮互助,文档不清楚我们就自己讨论了....

加群可以加我微信 li570467731,备注“企业微信“,可加开发及产品同行群。

 


Yeo:
发送消息内容:{"toparty":4,"msgtype":"text","agentid":1000003,"text":{"content":"【业务监控报警】测试数据回传(测试消息,忽略)"},"safe":0}返回内容:{"errcode":0,"errmsg":"ok. Warning: wrong json format. ","invaliduser":""}发送时间:20211261526分左右


-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
wx.requestSubscribeMessage 一直提示用户拒绝接收?
aggregate报错,返回-1,无法找到原因且只在真机上出现
如何解决移动端企业微信中,在跳转页面时非要通过“微信客户端打开链接”才能访问?
微信开放标签唤起App 报错:istrusted:false是什么原因?
客服回复已经是t+7了,可是商户号看到还是t+6,而且开通不了企业付款到零钱功能
随便看看
微信公众号openid? 2275
微信开放平台跟公众平台有什么区别? 3517
怎么添加小程序支付功能? 4311
教育科技公司申请微信支付被拒绝? 4694
微信公众号免300认证教程 5775
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5186
小程序广告组件通过审核,但是小程序内没有显示广告? 4961
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9389
问题? 8909
如何快速搭建抽奖助手小程序(无需代码知识) 6039