Comments (6)
The log indicates there was a problem - 400
code coming from backend service. Can you post log of yarn run:backend
?
Also, before deploying new demo, please remove the backend database first. For example, instead of running yarn run:backend
from root directory, run:
rm -rf db.sqlite && yarn start:dev
from inside packages/origin-backend
directory
from origin.
So, after you deploy demo once, then you need to clear database and restart origin-backend. The easiest way to do it is to find db.sqlite
and remove it.
from origin.
@RohitGupta027 Can you post the log of yarn run:demo
command?
from origin.
yarn run v1.22.0
$ lerna run start --scope @energyweb/migrations --stream
lerna notice cli v3.20.2
lerna info versioning independent
lerna notice filter including "@energyweb/migrations"
lerna info filter [ '@energyweb/migrations' ]
lerna info Executing command in 1 package: "yarn run start"
@energyweb/migrations: $ ts-node src/deploy
@energyweb/migrations: Connected to the WebSocket event server on: ws://localhost:3031
@energyweb/migrations: (node:54842) UnhandledPromiseRejectionWarning: Error: Request failed with status code 400
@energyweb/migrations: at createError (/Users/rohit.gupta/shell/blockchain/ewf/origin/node_modules/axios/lib/core/createError.js:16:15)
@energyweb/migrations: at settle (/Users/rohit.gupta/shell/blockchain/ewf/origin/node_modules/axios/lib/core/settle.js:17:12)
@energyweb/migrations: at IncomingMessage.handleStreamEnd (/Users/rohit.gupta/shell/blockchain/ewf/origin/node_modules/axios/lib/adapters/http.js:236:11)
@energyweb/migrations: at IncomingMessage.emit (events.js:323:22)
@energyweb/migrations: at IncomingMessage.EventEmitter.emit (domain.js:482:12)
@energyweb/migrations: at endReadableNT (_stream_readable.js:1204:12)
@energyweb/migrations: at processTicksAndRejections (internal/process/task_queues.js:84:21)
@energyweb/migrations: (node:54842) 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: 2)
@energyweb/migrations: (node:54842) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from origin.
Worked like charm by running rm -rf db.sqlite && yarn start:dev
from project directory. Earlier I started the backend from the root directory and it does start without any error but then yarn run:demo
was giving error 400
. Any idea what causes the issue before?
from origin.
Thanks @Kuzirashi for your quick responses and provide solution.
from origin.
Related Issues (20)
- Dependency Dashboard
- Docker-compose automation
- Rush build error - [Errno 2] No such file or directory: 'build:ts'
- env file are not reflected at runtime HOT 1
- revert Error: The called function should be payable if you send value and the value you send should be less than your current balance.
- [issuer-api] incorrect error reporting
- [issuer-api] `issuer_certificate_id_seq` is not working
- (node:71689) UnhandledPromiseRejectionWarning: error: column "platformOperatorPrivateKey" of relation "issuer_blockchain_properties" does not exist
- Rush update issue HOT 3
- deployment to Volta
- [bug] `common/config/rush/command-line.json` need to be updated
- broken link in the Repo's ABOUT blurb
- How to login as the admin of platform operator organization in origin platform reference implementation? And related queries. HOT 1
- BUG - ERC1888 array overrun
- As environmental and data engineer i have to highlight that these tools are not what they claim to be
- MemoryLeak due to long await in CertificateService issue method of @energyweb/origin-247-certificate package's causing, when trying to issue around 50 certificates HOT 2
- missing metadata in issuer_certificate table and multiple issues encountered while issuing certificate using '@energyweb/origin-247-certificate' CertificateService issue method
- How can I approve a device HOT 1
- Add `rush link` before `rush build`.
- Rush update issue HOT 1
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 origin.