Supply chain demo app - not able to upload the contracts


#1

I tried to follow the process mentioned in Supply Chain Demo App, but when I try to upload the smart contracts required by the demo app using npm run deploy, I get following error:

" -d “args={}” -d “contract=AdminInterface” -d “txParams={gasLimit:100000000,gasPrice:1}” http://localhost/bloc/v2.2/users/Admin_2474_37695/024aee1dd7d8a5c6b90d7b782546823ed20ffad6/contract?resolve
1) should upload the contracts

0 passing (1m)
1 failing

  1. Supply Chain Demo App - deploy contracts should upload the contracts:

HttpError: 400 Bad Request: “strato error: failed to find account”: http://localhost/bloc/v2.2/users/Admin_2474_37695/024aee1dd7d8a5c6b90d7b782546823ed20ffad6/contract?resolve
at node_modules/blockapps-rest/lib/rest_5.js:259:40
at
at process._tickCallback (internal/process/next_tick.js:160:7)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: mocha server/dapp/dapp.deploy.js --config server/config/${SERVER:-localhost}.config.yaml -b && cp server/config/${SERVER:-localhost}.config.yaml ./config.yaml
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

can anyone help me?


#2

I tried to manually upload a smart contract, but again I got following error:

strato error: failed to find account

What can be the reason ?