收藏
回答

云函数获取AccessToken本地调试可以,上传云端测试失败?

日志内容 Request ID: 5dbf9e73-43ff-11eb-a934-525400b8ee5a

执行时间: 272ms内存使用: 86.50 MB

返回结果

{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501007 invalid parameters | errMsg: [InvalidParameterValue.InvalidDoc] Document entered in the request is illegal. Please check your request, but if the problem persists, contact us.; \n at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:7814:16)\n at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1411:23)\n at Promise (/var/user/node_modules/wx-server-sdk/index.js:1327:33)\n at process._tickCallback (internal/process/next_tick.js:68:7)","statusCode":430}

日志

START RequestId:5dbf9e73-43ff-11eb-a934-525400b8ee5a

2020-12-22T02:42:44.723Z { userInfo:

{ appId: 'wx49ff43c64cf41ff2',

openId: '隐藏' } }

2020-12-22T02:42:44.938Z undefined

2020-12-22T02:42:44.938Z NaN

2020-12-22T02:42:44.939Z 1608604964939

ERROR RequestId:5dbf9e73-43ff-11eb-a934-525400b8ee5a Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501007 invalid parameters | errMsg: [InvalidParameterValue.InvalidDoc] Document entered in the request is illegal. Please check your request, but if the problem persists, contact us.; \n at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:7814:16)\n at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1411:23)\n at Promise (/var/user/node_modules/wx-server-sdk/index.js:1327:33)\n at process._tickCallback (internal/process/next_tick.js:68:7)","statusCode":430}

END RequestId:5dbf9e73-43ff-11eb-a934-525400b8ee5a

Report RequestId:5dbf9e73-43ff-11eb-a934-525400b8ee5a Duration:272ms Memory:256MB MemUsage:86.496094MB


回答关注问题邀请回答
收藏

1 个回答

  • 疯狂的小辣椒
    疯狂的小辣椒
    2020-12-23

    你好,云端测试可以正常获取的,建议自查下。

    2020-12-23
    有用
    回复
登录 后发表内容
问题标签