Coder Social home page Coder Social logo

Comments (10)

rewanthtammana avatar rewanthtammana commented on July 17, 2024

Hi @sirmalware , How are you trying to run the backend server? With docker or without docker? Can you please try to run it with Docker?

Backend server installation steps are mentioned here: Install Backend Server

from damn-vulnerable-bank.

dennismzia avatar dennismzia commented on July 17, 2024

ive tried running it with both docker-compose and npm to know avail but both give the same errors. to reproduce could you clone the current repo and try running the server would like to confirm its not just on my side. and yes I've read the instructions couple 10x times now marvelously written btw. Ive searched for solutions online and again still get the same answer of encapsulating promises in catch. probably its a new node/npm update breaking it?

from damn-vulnerable-bank.

rewanthtammana avatar rewanthtammana commented on July 17, 2024

I just tried it online on Katacoda. It's working for me. See the last few lines.

image

from damn-vulnerable-bank.

dennismzia avatar dennismzia commented on July 17, 2024

Screenshot from 2022-01-16 15-10-38
by the screenshot what could be wrong

from damn-vulnerable-bank.

rewanthtammana avatar rewanthtammana commented on July 17, 2024

Okay, I understood your concern. We have two docker containers as part of BackendServer.

  1. API
  2. MySQL

As mentioned here, API container depends on MySQL container.

Until MySQL server is not up, API server tries to connect with MySQL but the connection will not be successful. The API server will throw some errors. Because of it, the API server container will be terminated. A new API server container will be created immediately to retry the same request.

Just run docker-compose up --build & wait for some time. Then the MySQL container will be fully functional & so will the API server. Don't press Ctrl+C, just wait for a while.

from damn-vulnerable-bank.

dennismzia avatar dennismzia commented on July 17, 2024

ok. have you tried npm start locally tho?

from damn-vulnerable-bank.

rewanthtammana avatar rewanthtammana commented on July 17, 2024

Not required, if you are using docker.

from damn-vulnerable-bank.

hafiz-ng avatar hafiz-ng commented on July 17, 2024

Hi rewanthtammana,

npm start on local machine doesn't work.

You should probably take a look at this error message:

(node:53570) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

from damn-vulnerable-bank.

rewanthtammana avatar rewanthtammana commented on July 17, 2024

@hafiz-ng It might be an issue with the version of npm you are using. Try running it using docker. It's preferred for installation & easy to create/destroy resources. Instructions here

from damn-vulnerable-bank.

hafiz-ng avatar hafiz-ng commented on July 17, 2024

Thanks. I will try that.

from damn-vulnerable-bank.

Related Issues (9)

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.