季兆星
季兆星
  • 发布:2023-10-11 10:59
  • 更新:2023-11-10 20:51
  • 阅读:587

【报Bug】访问云函数报FunctionBizError(已和阿里云确认,阿里云依赖bug,已解决)

分类:uniCloud

产品分类: uniCloud/App

示例代码:

{
"objectName": "im-chat-api",
"methodName": "signatureOss",
"params": [],
"error": {
"errMsg": "[im-chat-api]: Unexpected token ",
"errCode": "FunctionBizError",
"code": "FunctionBizError",
"detail": {
"errMsg": "[im-chat-api]: Unexpected token
",
"errCode": "FunctionBizError",
"code": "FunctionBizError",
"requestId": "ac1cd3651696992300753117418"
}
}
}

操作步骤:

请求云函数

预期结果:

正常访问获取数据

实际结果:

{
"objectName": "im-chat-api",
"methodName": "signatureOss",
"params": [],
"error": {
"errMsg": "[im-chat-api]: Unexpected token ",
"errCode": "FunctionBizError",
"code": "FunctionBizError",
"detail": {
"errMsg": "[im-chat-api]: Unexpected token
",
"errCode": "FunctionBizError",
"code": "FunctionBizError",
"requestId": "ac1cd3651696992300753117418"
}
}
}

bug描述:

[im-chat-api/ac1cd3651696992300753117418/7ms/ERROR] Unexpected token
/tmp/function/node_modules/httpx/lib/index.js:346
exports.readAsSSE = async function
(response) {
^

SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/node_modules/@alicloud/tea-typescript/dist/tea.js:76:26)
请求响应状态: fail

2023-10-11 10:59 负责人:无 分享
已邀请:
xd210

xd210

RequestID ac1cd3621697123429044113049

Error: Request was denied due to api concurrency control.
at /tmp/function/@dcloudio/serverless/lib/aliyun/uni-cloud.js:1:1549
at processTicksAndRejections (internal/process/task_queues.js:97:5)
请求响应状态: fail

结城明日

结城明日 - 阿斯顿

解决了吗 我也遇到相同的问题了

q***@qq.com

q***@qq.com

今天遇到这BUG,这么长时间了也没人给解决方案.
解决方法 是云函数package.json 里, "runtime": "Nodejs12",指定使用node12就好了.

要回复问题请先登录注册