Giter Site home page Giter Site logo

Comments (5)

muke1908 avatar muke1908 commented on August 20, 2024 2

If mongodb is not configured, it'll use inMem storage. Not ideal but you'll be able to run the app. Mongodb is configured in production

from chat-e2ee.

sharduld1908 avatar sharduld1908 commented on August 20, 2024 1

Can you assign me this issue? Would like to contribute to this project.

from chat-e2ee.

sharduld1908 avatar sharduld1908 commented on August 20, 2024

@muke1908
I am facing this error when I run 'npm run dev'
{
[1] err: MongoAPIError: URI must include hostname, domain name, and tld
[1] at resolveSRVRecord (/home/sharduld/open_source/node_projects/chat-e2ee/node_modules/mongodb/src/connection_string.ts:65:11)
[1] at /home/sharduld/open_source/node_projects/chat-e2ee/node_modules/mongodb/src/mongo_client.ts:457:45
[1] at maybeCallback (/home/sharduld/open_source/node_projects/chat-e2ee/node_modules/mongodb/src/utils.ts:449:19)
[1] at MongoClient.connect (/home/sharduld/open_source/node_projects/chat-e2ee/node_modules/mongodb/src/mongo_client.ts:449:25)
[1] at /home/sharduld/open_source/node_projects/chat-e2ee/backend/db/index.ts:17:18
[1] at Generator.next ()
[1] at /home/sharduld/open_source/node_projects/chat-e2ee/backend/db/index.ts:8:71
[1] at new Promise ()
[1] at __awaiter (/home/sharduld/open_source/node_projects/chat-e2ee/backend/db/index.ts:4:12)
[1] at Object.connectDb (/home/sharduld/open_source/node_projects/chat-e2ee/backend/db/index.ts:14:45) {
[1] [Symbol(errorLabels)]: Set(0) {}
[1] }
[1] }
[1] MONGO DB ERROR! Using in-memory DB - Not reliable!!

I have already set up the .env according to the .env.sample in the repo. Not sure why the database is not connecting. Can you help me here?

from chat-e2ee.

muke1908 avatar muke1908 commented on August 20, 2024

@Shardul1908 probably wrong URI (wrong format)?
You should still be able to run the app even if no mongo db.

from chat-e2ee.

sharduld1908 avatar sharduld1908 commented on August 20, 2024

Ohh okay, let me try that. Why is MongoDB used then?

from chat-e2ee.

Related Issues (20)

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.