返回结果
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501007 invalid parameters | errMsg: urlscheme.generate:fail [100003] env not exists (a4ab602a-b5c0-4897-a695-a84421d39eed)\n at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:425:19)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\n at async callWXOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:2358:28)","statusCode":430}
日志
START
当前未指定env,将默认使用第一个创建的环境!
REPORT RequestId:252b1a61-3684-4798-9dc1-69186bd80ac5 Duration:84ms Memory:256MB MemUsage:24.328598MB
END
ERROR RequestId:252b1a61-3684-4798-9dc1-69186bd80ac5 Result:{"errCode":1,"errMsg":"user code exception caught","stackTrace":"Error: errCode: -501007 invalid parameters | errMsg: urlscheme.generate:fail [100003] env not exists (a4ab602a-b5c0-4897-a695-a84421d39eed)\n at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:425:19)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\n at async callWXOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:2358:28)"}
有解决吗
检查下:
1、小程序的app.js文件中,初始化的时候需要指定env
2、云函数代码中cloud初始化的时候,也需要指定env;
之前cloud没有env就行, 现在好像需要加上;