d***@lskyo.com
d***@lskyo.com
  • 发布:2024-05-08 12:51
  • 更新:2024-05-09 14:26
  • 阅读:31

使用 uniCloud.httpProxyForEip.postJson 发生报错、是什么原因“

分类:uniCloud
        let sendRes = await uniCloud.httpProxyForEip.postJson({  
            url: sendUrl,  
            data: data  
        });

使用 await uniCloud.httpProxyForEip.postJson 提交模板消息。报错信息为

internal error
12:48:07.106 [本地运行] at processTicksAndRejections (node:internal/process/task_queues:96:5)
12:48:07.107 [本地运行] at async fe.sendtmpmessage (D:\www\czgl1\uniCloud-aliyun\cloudfunctions\templatemessage\index.obj.js:141:17)

请问是什么原因

2024-05-08 12:51 负责人:DCloud_uniCloud_VK 分享
已邀请:
DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

postJson参数错误,正确的格式是

uniCloud.httpProxyForEip.postJson(  
  'https://www.example.com/search',  
  {  
    q: 'nodejs',  
    cat: '1001'  
  }  
)

要回复问题请先登录注册