Commit 424a456 switched the port exposed by the anvil instance hosted in docker from 8545 to 8546 this breaks the documentation as the default RPC assumes HTTP on port 8545.
This results in the following error message (from smart-turret in this case):
Deploying from 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
HttpRequestError: HTTP request failed.
URL: http://127.0.0.1:8545
Request body: {"method":"eth_getCode","params":["0x4e59b44847b379578588920ca78fbf26c0b4956c","latest"]}
Details: fetch failed
Version: 2.21.19
at Object.request (file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/utils/rpc/http.js:78:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fn (file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/clients/transports/http.js:45:25)
at async request (file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/clients/transports/http.js:49:45)
at async withRetry.delay.count.count (file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/utils/buildRequest.js:20:24)
at async attemptRetry (file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/utils/promise/withRetry.js:12:30) {
details: 'fetch failed',
docsPath: undefined,
metaMessages: [
'URL: http://127.0.0.1:8545',
'Request body: {"method":"eth_getCode","params":["0x4e59b44847b379578588920ca78fbf26c0b4956c","latest"]}'
],
shortMessage: 'HTTP request failed.',
version: '2.21.19',
body: {
method: 'eth_getCode',
params: [ '0x4e59b44847b379578588920ca78fbf26c0b4956c', 'latest' ]
},
headers: undefined,
status: undefined,
url: 'http://127.0.0.1:8545',
[cause]: TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async withTimeout.errorInstance.TimeoutError.body.body (file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/utils/rpc/http.js:39:38)
at async file:///home/richardslater/evefrontier/ccp-builder-examples/smart-turret/node_modules/.pnpm/viem@2.21.19_typescript@5.4.2_zod@3.23.8/node_modules/viem/_esm/utils/promise/withTimeout.js:18:25 {
cause: Error: connect ECONNREFUSED 127.0.0.1:8545
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8545
}
}
}
Commit 424a456 switched the port exposed by the anvil instance hosted in docker from 8545 to 8546 this breaks the documentation as the default RPC assumes HTTP on port 8545.
This results in the following error message (from
smart-turret
in this case):Have confirmed that this is a problem with:
All present the same error.