-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to run testrpc #4
Comments
You must start TestRPC: try running: `npm run start:testrpc` before running
the deployment.
Thanks!
…On Fri, Mar 23, 2018 at 12:33 PM, pyyding ***@***.***> wrote:
Issue description
App will get errors when running npm install, deploy:testrpc or
start:testrpc.
Steps to reproduce the issue
1. run npm install, npm test, npm deploy:testrpc or npm start
What's the expected result?
- No error
What's the actual result?
- none of the scripts pass without an error, this is the stacktrace
for *deploy:testrpc*
[ethdeploy 2018-03-23T11:46:09.521Z] Deployment error Error: [ethdeploy 2018-03-23T11:46:09.521Z] Error: [ethdeploy 2018-03-23T11:46:09.521Z] while transforming environment, error attempting to connect to node environment 'testrpc': Error: [ethjs-rpc] error with payload {"id":9714503154943,"jsonrpc":"2.0","params":[],"method":"net_version"} Error: [ethjs-provider-http] Invalid JSON RPC response from provider
host: http://localhost:8545
response: ""
responseURL: undefined
status: 0
statusText:
,
at error (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/ethdeploy/src/utils/index.js:35:10)
at buildEnvironment (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/ethdeploy/src/index.js:65:57)
at query.net_version (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/ethdeploy/src/lib/index.js:47:32)
at cb (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/ethjs-query/lib/index.js:57:11)
at /Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/ethjs-rpc/lib/index.js:55:14
at XMLHttpRequest.request.onreadystatechange (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/ethjs-provider-http/lib/index.js:91:7)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/xhr2/lib/xhr2.js:64:18)
at XMLHttpRequest._setReadyState (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/xhr2/lib/xhr2.js:353:12)
at XMLHttpRequest._onHttpRequestError (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/xhr2/lib/xhr2.js:542:12)
at ClientRequest.<anonymous> (/Users/kaspar/open_source/ethjs-contract-boilerplate/node_modules/xhr2/lib/xhr2.js:413:24)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ***@***.*** deploy:testrpc: 'ethdeploy ./internals/ethdeploy/ethdeploy.testrpc.config.js'
Additional details / screenshot
- got *npm start* working by using ganache-cli in server.js
const ganache = require('ganache-cli');
const accounts = require('../accounts/index.js');
const server = ganache.server({
accounts,
logger: console,
});
server.listen('8545', (err, blockchain) => {
console.log('error: ' + err); // eslint-disable-line
});
- I am more than willing to contribute if you point me the way. Any
example repos would be great.
- ethdeploy.testrpc.config.js and server.js are most likely the files
that need to be updated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJWhXl2JMuBHWE42r9c2CP30i_YOdll7ks5thOuggaJpZM4S4pKH>
.
|
Got it! You're meant to run Thanks for quick input! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
App will get errors when running
npm install, deploy:testrpc or start:testrpc
.Steps to reproduce the issue
What's the expected result?
What's the actual result?
Additional details / screenshot
The text was updated successfully, but these errors were encountered: