Skip to content
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

BUG #146

Open
tianheng2017 opened this issue Feb 14, 2022 · 0 comments
Open

BUG #146

tianheng2017 opened this issue Feb 14, 2022 · 0 comments

Comments

@tianheng2017
Copy link

tianheng2017 commented Feb 14, 2022

root@ip-172-31-21-170:/www/pancake-subgraph/subgraphs/exchange# yarn build
yarn run v1.22.17
$ graph build subgraph.yaml
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2 (graph-ts dependency not installed yet)
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3 (graph-ts dependency not installed yet)
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4 (graph-ts dependency not installed yet)
Skip migration: Bump mapping specVersion from 0.0.1 to 0.0.2
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
Compile data source: Factory => build/Factory/Factory.wasm
Compile data source template: Pair => build/templates/Pair/Pair.wasm
✔ Compile subgraph
Copy schema file build/schema.graphql
Write subgraph file build/Factory/abis/Factory.json
Write subgraph file build/Factory/abis/ERC20.json
Write subgraph file build/Factory/abis/ERC20NameBytes.json
Write subgraph file build/Factory/abis/ERC20SymbolBytes.json
Write subgraph file build/Pair/abis/Factory.json
Write subgraph file build/Pair/abis/Pair.json
Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/

Build completed: /www/pancake-subgraph/subgraphs/exchange/build/subgraph.yaml

Done in 6.04s.
root@ip-172-31-21-170:/www/pancake-subgraph/subgraphs/exchange# graph auth --product hosted-service '10a7eb—12e722'
Deploy key set for https://api.thegraph.com/deploy/
root@ip-172-31-21-170:/www/pancake-subgraph/subgraphs/exchange# yarn deploy
yarn run v1.22.17
$ graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/exchange subgraph.yaml
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2 (graph-ts dependency not installed yet)
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3 (graph-ts dependency not installed yet)
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4 (graph-ts dependency not installed yet)
Skip migration: Bump mapping specVersion from 0.0.1 to 0.0.2
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
Compile data source: Factory => build/Factory/Factory.wasm
Compile data source template: Pair => build/templates/Pair/Pair.wasm
✔ Compile subgraph
Copy schema file build/schema.graphql
Write subgraph file build/Factory/abis/Factory.json
Write subgraph file build/Factory/abis/ERC20.json
Write subgraph file build/Factory/abis/ERC20NameBytes.json
Write subgraph file build/Factory/abis/ERC20SymbolBytes.json
Write subgraph file build/Pair/abis/Factory.json
Write subgraph file build/Pair/abis/Pair.json
Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/
Add file to IPFS build/schema.graphql
.. QmUTT8XtXyy6JkJN9h8aJmTdzu2HSZf9ZCGWJYj9B5ejAK
Add file to IPFS build/Factory/abis/Factory.json
.. QmQ28FujgvGMvHrVucaaGtmZqmHBim7iNGQvgccaDyNK84
Add file to IPFS build/Factory/abis/ERC20.json
.. QmXuTbDkNrN27VydxbS2huvKRk62PMgUTdPDWkxcr2w7j2
Add file to IPFS build/Factory/abis/ERC20NameBytes.json
.. QmQCP6Pdp1MqpwRv2qoPHuUTwZGy7Q3eDHg4w5kzwE9mBj
Add file to IPFS build/Factory/abis/ERC20SymbolBytes.json
.. QmbHnhUFZa6qqqRyubUYhXntox1TCBxqryaBM1iNGqVJzT
Add file to IPFS build/Factory/Factory.wasm
.. QmQgiqkUtWam4dSbKDN282LiQzqdatx2RbbFSGr8zoU9yT
Add file to IPFS build/Pair/abis/Factory.json
.. QmQ28FujgvGMvHrVucaaGtmZqmHBim7iNGQvgccaDyNK84 (already uploaded)
Add file to IPFS build/Pair/abis/Pair.json
.. QmbPLMADBP8L6LBVP3ZBQ8RgG7ghamD8DvbdUxHAjZrLgm
Add file to IPFS build/templates/Pair/Pair.wasm
.. QmU2nwjPUgnKSvuQ7LZn2oD28KBHG2EKD19qcfB4Q4sz8u
✔ Upload subgraph to IPFS

Build completed: QmfGuiGdHVCbSf8TsVBcjTSn93udHVuwy1EFGyLKEfJ6ty

⠋ Deploying to Graph node https://api.thegraph.com/deploy//www/pancake-subgraph/node_modules/binaryen/index.js:7
if(n){p=__dirname+"/";var ea,fa;a.read=function(c,e){var b=q(c);b||(ea||(ea=require("fs")),fa||(fa=require("path")),c=fa.normalize(c),b=ea.readFileSync(c));return e?b:b.toString()};a.readBinary=function(c){c=a.read(c,!0);c.buffer||(c=new Uint8Array(c));assert(c.buffer);return c};1<process.argv.length&&(a.thisProgram=process.argv[1].replace(/\/g,"/"));a.arguments=process.argv.slice(2);process.on("uncaughtException",function(c){if(!(c instanceof ha))throw c;});process.on("unhandledRejection",u);a.quit=
^

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Authorization"]
at ClientRequest.setHeader (_http_outgoing.js:564:3)
at new ClientRequest (_http_client.js:262:14)
at Object.request (https.js:374:10)
at ClientHttps._getRequestStream (/www/pancake-subgraph/node_modules/jayson/lib/client/https.js:33:16)
at /www/pancake-subgraph/node_modules/jayson/lib/client/http.js:61:22
at Object.Utils.JSON.stringify (/www/pancake-subgraph/node_modules/jayson/lib/utils.js:290:3)
at ClientHttps.ClientHttp._request (/www/pancake-subgraph/node_modules/jayson/lib/client/http.js:44:14)
at ClientHttps.Client.request (/www/pancake-subgraph/node_modules/jayson/lib/client/index.js:148:8)
at deploySubgraph (/www/pancake-subgraph/node_modules/@graphprotocol/graph-cli/src/commands/deploy.js:225:14)
at Command.run (/www/pancake-subgraph/node_modules/@graphprotocol/graph-cli/src/commands/deploy.js:299:13) {
code: 'ERR_INVALID_CHAR'
}
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant