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
Subgraph initialisation failed due to: git commit -m "Initialize subgraph" #1565
Comments
do you have |
Yes @saihaj , I do, as I mentioned the git cli version is "git version 2.39.3 (Apple Git-145)" |
hmm so to unblock you try I am curious why |
Yes, adding |
@shantanu-bico I added some more debug logs around the |
Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Upon initialising a subgraph (hosted-service), the initialisation broke with the following trace:
✖ Failed to fetch Start Block: Failed to fetch contract creation transaction hash
✔ Do you want to retry? (Y/n) · true
✔ Fetching Start Block
✔ Start Block · 17025946
✔ Contract Name · Contract
✔ Index contract events as entities (Y/n) · true
Generate subgraph
Write subgraph to directory
✔ Create subgraph scaffold
✔ Initialize networks config
✖ Failed to initialize subgraph repository: Command failed: git commit -m "Initialize subgraph"
For context, I have git initialised in my cli and setup appropriately, my git cli version is "git version 2.39.3 (Apple Git-145)"
For further context, here is the version of graph and node cli that I am using:
graph --version
@graphprotocol/graph-cli/0.66.0 darwin-arm64 node-v21.2.0
Reproduction
There is no repo yet, I am stuck at the first step of initilisation
Steps to Reproduce the Bug or Issue
Upon following the default steps at Initialising a hosted service subgraph, the first step to
graph init
is causing this issue for me.It isn't my first subgraph but this error started occuring randomly.
The command I ran: graph init --product hosted-service shantanu-bico/sa-v1-factory-ethereum
The output trace recieved:
✔ Ethereum network · mainnet
✔ Contract address · 0x000000f9ee1842bb72f6bbdd75e6d3d4e3e9594c
✔ Fetching ABI from Etherscan
✖ Failed to fetch Start Block: Failed to fetch contract creation transaction hash
✔ Do you want to retry? (Y/n) · true
✖ Failed to fetch Start Block: Failed to fetch contract creation transaction hash
✔ Do you want to retry? (Y/n) · true
✔ Fetching Start Block
✔ Start Block · 17025946
✔ Contract Name · Contract
✔ Index contract events as entities (Y/n) · true
Generate subgraph
Write subgraph to directory
✔ Create subgraph scaffold
✔ Initialize networks config
✖ Failed to initialize subgraph repository: Command failed: git commit -m "Initialize subgraph"
Expected behavior
I expect the graph to be initialised
Screenshots or Videos
No response
Platform
@graphprotocol/graph-cli/0.66.0 darwin-arm64 node-v21.2.0
Subgraph Manifest
No response
Subgraph GraphQL Schema
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: