Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Vaults query cannot be performed in the local environment. #158

Open
AiDaiP opened this issue Jul 11, 2024 · 0 comments
Open

Vaults query cannot be performed in the local environment. #158

AiDaiP opened this issue Jul 11, 2024 · 0 comments

Comments

@AiDaiP
Copy link

AiDaiP commented Jul 11, 2024

Hello, I'm trying to start a local test environment.
I started localnet and vault using the docker-compose.yml in interbtc-api, and then I used polkadot-js to mint kBTC according to the method in https://docs.interlay.io/, which all succeeded. Next I tried to go to the vault dashboard to view the vault status, which requires interbtc-ui. interbtc-ui requires graphql, so I used interbtc-squid. I started squid-indexer using the docker-compose.yml in the indexer path, then executed yarn db:migrate, graphql is at http://localhost:4000/v1/graphql, and started interbtc-ui with this URL as an environment variable. When I visited the vault dashboard, I got an error. I observed that interbtc-ui sent a graphql request, which was

query {
vaults(orderBy: registrationTimestamp_ASC) {
id
registrationTimestamp
}
}

However, the result returned was

{
"errors": [
{
"extensions": {
"path": "$.selectionSet.vaults",
"code": "validation-failed"
},
"message": "field \"vaults\" not found in type: 'query_root'"
}
]
}

So when I access the vault dashbord, an error will be reported.
I checked other requests when accessing vaults, and I found that issues also returned similar errors

{"errors":[{"extensions":{"path":"$.selectionSet.issues","code":"validation-failed"},"message":"field \"issues\" not found in type: 'query_root'"}]}

In schema.graphql, there are no vaults and issues, only vault and issue.
How should I start correctly?

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

No branches or pull requests

1 participant