最近几天屡次出现云函数报错,什么原因?
报错日志:
action: functions.InvokeFunction
clientIp: 2409:8924:5a4c:96:c1e0:8670:acf1:8c2f
code: FUNCTIONS_EXECUTE_FAIL
envId: user-phone-2gvztrx8bf093969
errInfo: map[code:UnknownError message:TypeErrgetOpenData:fail or [ERR_INVALID_ARG_TYPE]: getOpenData:fail The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined]
message: TypeErrgetOpenData:fail or [ERR_INVALID_ARG_TYPE]: getOpenData:fail The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined at Function.byteLength (buffer.js:515:11) at BufferWriter.write_string_buffer [as string] (/var/user/node_modules/protobufjs/src/writer_buffer.js:68:22) at Function.encode (/var/user/node_modules/wx-server-sdk/index.js:5465:58) at Promise (/var/user/node_modules/wx-server-sdk/index.js:2037:83) at new Promise (<anonymous>) at Cloud.getOpenData (/var/user/node_modules/wx-server-sdk/index.js:2022:16) at Object.args [as getOpenData] (/var/user/node_modules/wx-server-sdk/index.js:123:29) at exports.main (/var/user/index.js:11:22) at IncomingMessage.TestHTTPHandle.req.on (/data/scf/frame/runtime.js:224:26) at IncomingMessage.emit (events.js:194:15)
resourceName: getPhone
sdkVersion: wx-miniprogram-sdk/3.4.8 (NaN platform/ios})
seqId: 1719728033959_0.27450381858912454_16797995
tags: [logFrom=middleware]
timestamp: 1.719728034114e+12
action: functions.InvokeFunction
clientIp: 2409:8924:5a4c:96:c1e0:8670:acf1:8c2f
code: FUNCTIONS_EXECUTE_FAIL
envId: user-phone-2gvztrx8bf093969
errInfo: map[code:UnknownError message:TypeErrgetOpenData:fail or [ERR_INVALID_ARG_TYPE]: getOpenData:fail The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined]
message: TypeErrgetOpenData:fail or [ERR_INVALID_ARG_TYPE]: getOpenData:fail The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined at Function.byteLength (buffer.js:515:11) at BufferWriter.write_string_buffer [as string] (/var/user/node_modules/protobufjs/src/writer_buffer.js:68:22) at Function.encode (/var/user/node_modules/wx-server-sdk/index.js:5465:58) at Promise (/var/user/node_modules/wx-server-sdk/index.js:2037:83) at new Promise (<anonymous>) at Cloud.getOpenData (/var/user/node_modules/wx-server-sdk/index.js:2022:16) at Object.args [as getOpenData] (/var/user/node_modules/wx-server-sdk/index.js:123:29) at exports.main (/var/user/index.js:11:22) at IncomingMessage.TestHTTPHandle.req.on (/data/scf/frame/runtime.js:224:26) at IncomingMessage.emit (events.js:194:15)
resourceName: getPhone
sdkVersion: wx-miniprogram-sdk/3.4.8 (NaN platform/ios})
seqId: 1719728029376_0.5032832276993913_16779577
tags: [logFrom=afterFuncCb]
timestamp: 1.719728030786e+12
action: functions.InvokeFunction
clientIp: 2409:8924:5a4c:96:c1e0:8670:acf1:8c2f
code: FUNCTIONS_EXECUTE_FAIL
envId: user-phone-2gvztrx8bf093969
errInfo: map[code:UnknownError message:TypeErrgetOpenData:fail or [ERR_INVALID_ARG_TYPE]: getOpenData:fail The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined]
message: TypeErrgetOpenData:fail or [ERR_INVALID_ARG_TYPE]: getOpenData:fail The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined at Function.byteLength (buffer.js:515:11) at BufferWriter.write_string_buffer [as string] (/var/user/node_modules/protobufjs/src/writer_buffer.js:68:22) at Function.encode (/var/user/node_modules/wx-server-sdk/index.js:5465:58) at Promise (/var/user/node_modules/wx-server-sdk/index.js:2037:83) at new Promise (<anonymous>) at Cloud.getOpenData (/var/user/node_modules/wx-server-sdk/index.js:2022:16) at Object.args [as getOpenData] (/var/user/node_modules/wx-server-sdk/index.js:123:29) at exports.main (/var/user/index.js:11:22) at IncomingMessage.TestHTTPHandle.req.on (/data/scf/frame/runtime.js:224:26) at IncomingMessage.emit (events.js:194:15)
resourceName: getPhone
sdkVersion: wx-miniprogram-sdk/3.4.8 (NaN platform/ios})
seqId: 1719728032623_0.6815750717068587_16792354
tags: [logFrom=middleware]
timestamp: 1.71972803275e+12
加1