Comments (10)
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.
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.
I just tried it online on Katacoda. It's working for me. See the last few lines.
from damn-vulnerable-bank.
by the screenshot what could be wrong
from damn-vulnerable-bank.
Okay, I understood your concern. We have two docker containers as part of BackendServer.
- API
- 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.
ok. have you tried npm start locally tho?
from damn-vulnerable-bank.
Not required, if you are using docker.
from damn-vulnerable-bank.
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.
@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.
Thanks. I will try that.
from damn-vulnerable-bank.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from damn-vulnerable-bank.