收藏
回答

wx.cloud.callContainer response RangeError 怎么解?

Error: cloud.callContainer:fail -1 . cloud.callContainer:fail [call_id 0.4521620413830605_1699760193923] error while processing internal response RangeError: Invalid code point 1833546
    at R (<anonymous>:1:234885)
    at O (<anonymous>:1:234597)
    at <anonymous>:1:304882
    at Generator.throw (<anonymous>)  
    at t (<anonymous>:1:375)
    at u (<anonymous>:1:622)(env: macOS,mp,1.06.2308310; lib: 3.1.4)

 

调用云托管服务,在云端调试相同代码可以调通,在小程序使用 wx.cloud.callContainer 则报上述错误,错误说明文档中也不包含该错误,求解答。

调用方式如下:

wx.cloud.init();
wx.cloud.callContainer({
  "config": {
    "env": "prod-XXX"
  },
  "path": "static/XXX.pdf",
  "header": {
    "X-WX-SERVICE": "XXX",
    "content-type": "application/pdf"
  },
  "method": "GET",
  "data": ""
});


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签