Skip to content

Commit 369839d

Browse files
docs: update connection refused troubleshooting
1 parent 7712c3d commit 369839d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,14 @@ In development, the library automatically detects the linked edgedb project. In
153153

154154
TBD
155155

156-
## Database Connection refused (often on Windows 11)
156+
## Database Connection refused when generating `edgeql-js`
157+
158+
This is related to ipv6 in Node18 (often on Windows 11).
159+
160+
0. Make sure your `node -v` is equal to the one in `.nvmrc`
161+
162+
Run `nvm use` to apply the project node version.
163+
Run `nvm alias default node` to make it default.
157164

158165
1. Configure EdgeDB. See [Source](https://github.com/edgedb/edgedb-js/issues/376#issuecomment-1173840632).
159166

@@ -162,11 +169,3 @@ edgedb configure set listen_addresses 127.0.0.1 ::1
162169
```
163170

164171
2. or [Update operating system routing](https://github.com/nodejs/node/issues/40537#issuecomment-1706257550)
165-
166-
3. or configure the app (not recommended)
167-
168-
```ts
169-
// env.mjs or elsewhere where it suits you
170-
import dns from "node:dns";
171-
dns.setDefaultResultOrder("ipv4first");
172-
```

0 commit comments

Comments
 (0)