收藏
回答

云开发调用函数出现unable to authenticate using mechanism "

框架类型 问题类型 终端类型 AppID 环境ID 基础库版本
小程序 Bug 工具 wx18ed07e7b5a5eda0 platform-stu3y 2.11.0

云函数调用的时候报错,只有一个函数出了问题,其他没有,好像是数据库授权问题,求解

[云函数] [getRecord] :  Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 2cb63002-90d3-11ea-bbe2-52540042b19b, cloud function service error code -504002, error message errCode: -502001 database request fail | errMsg: [FailedOperation.ListTable] auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.Error: errCode: -502001 database request fail | errMsg: [FailedOperation.ListTable] auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.; 
    at Object.returnAsCloudSDKError (:41176/var/user/node_modules/wx-server-sdk/index.js:6121)
    at Object.checkError (:41176/var/user/node_modules/wx-server-sdk/index.js:1418)
    at Promise (:41176/var/user/node_modules/wx-server-sdk/index.js:1486)
    at <anonymous>
    at process._tickCallback (:41176/appservice/internal/process/next_tick.js:188); at cloud.callFunction api; 
    at new u (VM226 WAService.js:2)
    at d (VM226 WAService.js:2)
    at f (VM226 WAService.js:2)
    at Function.success (VM226 WAService.js:2)
    at VM226 WAService.js:2
    at E (VM226 WAService.js:2)
    at i.<anonymous> (VM226 WAService.js:2)
    at i.emit (VM226 WAService.js:2)
    at Ii (VM226 WAService.js:2)
    at VM226 WAService.js:2
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签