加1
小程序云函数报错?最近几天屡次出现云函数报错,什么原因? [图片][图片] 报错日志: 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
07-01当时这个问题怎么解决的,大佬
小程序断开mqtt时,mqttClient.end回调函数为什么没有执行?[图片] 如图,debugger不能正常触发
2023-06-2723年了,还没好
微信自定义分享的接口,咋会进去的方式不同分享结果也不同? 细节如下:只有扫码或点击带logo链接后再分享才能也带上logo 直接点击URL地址进去的分享出去还是URL 复现过程使用微信官方demo https://www.weixinsxy.com/jssdk/ 一、 扫码分享 [图片][图片] 结果是正常的 二、直接点击 https://www.weixinsxy.com/jssdk/ 然后分享 [图片] 就变成URL了 现在这个有解决方案吗?
2023-03-16我这里的主包正常,所有分包页面wxs文件都不正常
IOS微信最新版小程序wxs不执行升级最新版微信后,小程序内wxs代码都不生效
2022-01-17