Giter Site home page Giter Site logo

Comments (5)

1834423612 avatar 1834423612 commented on July 29, 2024

令人费解的是经过我多次尝试本地和云端部署,相同的代码竟然会有两种不同的报错内容,(我尝试随机设了一个jwt key)
另一个部署的报错:
MongooseError: Operation users.findOne() buffering timed out after 10000ms

image

from blog-next-view.

lnbiuc avatar lnbiuc commented on July 29, 2024

环境变量里填一下JWT_SECRET_KEY

from blog-next-view.

lnbiuc avatar lnbiuc commented on July 29, 2024

令人费解的是经过我多次尝试本地和云端部署,相同的代码竟然会有两种不同的报错内容,(我尝试随机设了一个jwt key)

另一个部署的报错:

MongooseError: Operation users.findOne() buffering timed out after 10000ms

image

这个因为请求超时或者数据库连接超时了,你看下

from blog-next-view.

1834423612 avatar 1834423612 commented on July 29, 2024

尝试更换了一个腾讯云服务器和另一个MongoDB官方的服务器,依旧是提示超时(目前使用美国原生网,不应该出现链接超时等情况)
DB链接信息如下(测试后会删机):mongodb+srv://admin:[email protected]/?retryWrites=true&w=majority&appName=kjch

对于MongoDB这方面是一窍不通的小白😣谢谢!!!

image
image

from blog-next-view.

1834423612 avatar 1834423612 commented on July 29, 2024

终于成功了😫是MongoDB的问题,没有设置权限(官方数据库),之前几次是未知问题导致的鉴权失败。

谢谢您!!!!

from blog-next-view.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.