Skip to content

Error while loading backend api #2

Open

Description

@LuigiElleBalotta

Hello, I have an error while trying to start the backend api:

https://pastebin.com/mebf3dpQ

This is the "complete log":
https://pastebin.com/XjpFwWRq

I followed all your instruction!
Also I have internet connection working, so I don't know why it's going in timeout..

Activity

  1. SamuelOjes commented on Aug 3, 2020

    @SamuelOjes

    Make sure you check properly, your MONGODB connection string in your .env file to see if you entered your password, email and database name correctly

  2. LuigiElleBalotta commented on Aug 4, 2020

    @LuigiElleBalotta
    Author

    Yes, the configuration is correct. I added to the end of the string &ssl=true and it's working.
    Also in db.js there should be an output to let the user know that the server is running, a console.log at least because sometime, since there is no output, it seems that the connection to db goes in timeout

  3. SamuelOjes commented on Aug 5, 2020

    @SamuelOjes

    Great. Did you add it to the end of the mongodb connection String?. Today i tried running the backend server again, i am having the same issue right now.

  4. LuigiElleBalotta commented on Aug 5, 2020

    @LuigiElleBalotta
    Author

    Yes at the end!
    And put a console log inside the db connection function inside db.js for making sure that the connection was successful

  5. SamuelOjes commented on Aug 5, 2020

    @SamuelOjes

    Thanks. Think it has to do with some isp and mongodb err. Still having the issue, it worked yesterday though

  6. SamuelOjes commented on Aug 5, 2020

    @SamuelOjes

    Thanks it working already, i used a different mongodb connection string, from mongodb and selected Nodejs Version 2.22.

  7. mojtabamaslahatbin commented on Aug 6, 2020

    @mojtabamaslahatbin

    i have same problem to start the backend api :(

  8. mojtabamaslahatbin commented on Aug 6, 2020

    @mojtabamaslahatbin

    @LuigiElleBalotta @SamuelOjes
    i solved this problem by allowing node.js to communicate through windows defender firewall.
    go to this address in control panel :
    " Control Panel >> Windows Defender Firewall >> allow an app or feature communicate through windows defender firewall"
    and check both private and public checkbox for "node.js:Server-side JavaScript" and run your command again.

  9. Zainab98Azzam commented on Aug 9, 2021

    @Zainab98Azzam

    Hey guys, I had the same problem and I followed what @LuigiElleBalotta said, I added &ssl=true at the end of the string and console logged hi, and it's working! thank you so much you saved my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions