graphprotocol / hardhat-graph

Apache License 2.0
33 stars 11 forks source link

Add: "Failed to fetch ABI from Etherscan: getaddrinfo ENOTFOUND api-hardhat.etherscan.io" #31

Open moconnell opened 1 year ago

moconnell commented 1 year ago

Looks like I'm getting the same error as #27 - I am calling add on top of an existing subgraph folder however:

- Add a new dataSource FooFooV1
  Initiating graph add command
- Add a new dataSource FooFooV1
- Fetching ABI from Etherscan
✖ Failed to fetch ABI from Etherscan: getaddrinfo ENOTFOUND api-hardhat.etherscan.io
✖ Failed to add a new dataSource DeVoxShamanSummonerV1: getaddrinfo ENOTFOUND api-hardhat.etherscan.io
Error HH604: Error running JSON-RPC server: ERROR processing /foo/evm/deploy/020_Graph_Init.ts:
Error: getaddrinfo ENOTFOUND api-hardhat.etherscan.io
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
For more info go to https://hardhat.org/HH604 or run Hardhat with --show-stack-traces
error Command failed with exit code 1.

Shame it's not being actively developed btw. What's the alternative route, short of deploying stuff to Goerli or wherever and then using the regular Graph CLI?

Originally posted by @moconnell in https://github.com/graphprotocol/hardhat-graph/issues/27#issuecomment-1550161762

dimitrovmaksim commented 1 year ago

Do you have a repo where I can reproduce this issue?