Skip to content
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

connect ECONNREFUSED #207

Closed
KornatisOG opened this issue May 12, 2021 · 1 comment
Closed

connect ECONNREFUSED #207

KornatisOG opened this issue May 12, 2021 · 1 comment

Comments

@KornatisOG
Copy link

KornatisOG commented May 12, 2021

This is the result of running the hello world in Gitpod versión

$ npm run start

helloworld@0.0.1 start
ts-node src/client/main.ts

Let's say hello to a Solana account...
Failed to read RPC url from CLI config file, falling back to localhost
FetchError: request to http://localhost:8899/ failed, reason: connect ECONNREFUSED 127.0.0.1:8899
at ClientRequest. (/workspace/example-helloworld/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:315:20)
at ClientRequest.EventEmitter.emit (domain.js:467:12)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at Socket.EventEmitter.emit (domain.js:467:12)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'
}

@jstarry
Copy link
Member

jstarry commented Jun 2, 2021

This means that the local validator is not running. You can run solana-test-validator in a separate terminal pane to fix this issue

@jstarry jstarry closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants