收藏
回答

storage.setUserStorage 报错 501007

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug cloud.openapi.storage.setUserStorage 工具 最新版 2.11.3

wx-server-sdk用的最新版2.1.2

云调用 storage.setUserStorage,已写permissions,按照示例复制过来,也已经正确填写openid,云端测试 但会报错501007



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

2 个回答

  • 邓坤力
    邓坤力
    2020-07-20

    这是参数错误的错误码,贴下具体报错信息?

    2020-07-20
    有用
    回复 1
    • Murddz
      Murddz
      2020-07-20
      2020-07-20
      回复
  • Syd
    Syd
    2021-04-08

    遇到了同样的问题,云端测试报501007错误。

    线上触发报604104错误:

    START RequestId:b8d73340-9806-11eb-b6bd-525400be5245
    
     
    
    2021-04-08T01:07:00.552Z  (node:7) UnhandledPromiseRejectionWarning: Error: errCode: -604104 illegal source of invocation | errMsg: system error: error code: -604104
    
        at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:486:27)
    
        at process._tickCallback (internal/process/next_tick.js:68:7)
    
     
    
    2021-04-08T01:07:00.552Z  (node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    
     
    
    2021-04-08T01:07:00.553Z  (node:7) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    
     
    
    2021-04-08T01:07:00.553Z  (node:7) UnhandledPromiseRejectionWarning: Error: errCode: -604104 illegal source of invocation | errMsg: system error: error code: -604104
    
        at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:486:27)
    
        at process._tickCallback (internal/process/next_tick.js:68:7)
    
     
    
    2021-04-08T01:07:00.553Z  (node:7) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) 
    
    END RequestId:b8d73340-9806-11eb-b6bd-525400be5245
    
    Report RequestId:b8d73340-9806-11eb-b6bd-525400be5245 Duration:203ms Memory:256MB MemUsage:30.187500MB
    


    请指点迷津

    2021-04-08
    有用
    回复
登录 后发表内容
问题标签