More descriptive manifest resolve error #5852
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The other day with @marcusrein we've ran into an issue with Explorer for one of the chains supplying slightly invalid ABI (one of the required fields was being lost during serialization).
graph init
would scaffold subgraph for this ABI butgraph deploy
request to Graph Node would fail with a very generic error:✖ Failed to deploy to Graph node http://localhost:8020/: subgraph resolve error: resolve error: failed to resolve data source Contract with source_address Some(0x88b8e2161dedc77ef4ab7585569d2415a1c1055d) and source_start_block 4900000
Deployment:
QmejLsgNNWCWT25HqVsgWZ6VgDBWpaR7RijQeYdcDZn6k3
This PR makes error message more descriptive for the subgraph developer:
✖ Failed to deploy to Graph node http://localhost:8020/: subgraph resolve error: resolve error: failed to resolve data source Contract with source_address Some(0x88b8e2161dedc77ef4ab7585569d2415a1c1055d) and source_start_block 4900000: failed to resolve mapping /ipfs/QmWmftR3RhDtRJpeK8JhgcP1Bys8cwMCwpMs6LH2noh1A3: failed to load ABI Contract: Serialization error: missing field
anonymousat line 169 column 3: missing field "anonymous" at line 169 column 3