收藏
回答

云开发偶发连接数据库失败?

最近总是突然间出现这个情况,然后半小时后又恢复正常,是不是你们云开发数据库负载均衡那边出问题了?

我本地是排查不出来啥问题,恳请官方大大看看

Request ID: 7df2c91f-8fdb-42f4-882e-97edfd34dbba

{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: collection.get:fail -502001 database request fail. [FailedOperation.Query] server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: 9.18.157.84:7006, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : connection(9.18.157.84:7006[-98341738]) incomplete read of message header: read tcp 21.47.98.98:55430-\u003e9.18.157.84:7006: i/o timeout }, { Addr: 9.55.215.183:7015, Type: RSSecondary, State: Connected, Average RTT: 2468221 }, { Addr: 100.104.186.122:7052, Type: RSSecondary, State: Connected, Average RTT: 1860273 }, ] } 请前往云开发AI小助手查看问题:https://tcb.cloud.tencent.com/cloud-admin#/copilot?q=DATABASE_REQUEST_FAILED\n at Object.toSDKError (/var/user/node_modules/wx-server-sdk/index.js:8094:19)\n at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1422:23)\n at /var/user/node_modules/wx-server-sdk/index.js:1489:33\n at processTicksAndRejections (node:internal/process/task_queues:96:5)","statusCode":430}

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

1 个回答

  • Fony
    Fony
    发表于小程序端
    1天前

    有没有技术人员看一下

    1天前
    有用
    回复
登录 后发表内容