Closed islishude closed 2 years ago
@islishude, does this code fix basic auth for IPFS endpoint as well?
I did some tests and got the following results
yarn graph build subgraph.yaml --ipfs https://user:pass@ipfs.domain.tld
✖ Failed to upload subgraph to IPFS: Failed to upload file to IPFS: Server responded with 404
This is reply from IPFS node and it means that same credentials works correctly with curl
curl https://user:pass@ipfs.domain.tld
404 page not found
yarn graph create subgraph.yaml --node https://user:pass@rinkeby.index.domain.tld
Created subgraph: subgraph-test
yarn graph deploy subgraph-test subgraph.yaml \
--version-label subgraph-test \
--ipfs https://user:pass@ipfs.domain.tld \
--node https://user:pass@rinkeby.index.domain.tld
✖ Failed to upload subgraph to IPFS: Failed to upload file to IPFS: Server responded with 404
Does your code fix basic authentication for IPFS node?
No, it's used for jsonrpc
you can also make a PR for ipfs
https://github.com/graphprotocol/graph-cli/blob/main/src/command-helpers/compiler.js#L22-L29
There is no auth field in URL.