Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Conversation

@willhickey
Copy link
Contributor

Problem:

If localhost resolves to ::1 (ipv6) rather than 127.0.0.1 (ipv4) the npm run start step will fail with

Let's say hello to a Solana account...
FetchError: request to http://localhost:8899/ failed, reason: connect ECONNREFUSED ::1:8899
<snipped>

The default Mac version of /etc/hosts contains ::1 localhost so this error will likely be encountered more frequently going forward.

Solution

Update the docs to suggest setting the solana config url to the ipv4 address to avoid the risk of localhost resolving to ipv6

@willhickey willhickey requested a review from jackcmay August 5, 2022 20:44
@gitpod-io
Copy link

gitpod-io bot commented Aug 5, 2022

@willhickey willhickey merged commit e004ec7 into master Aug 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants