Skip to content

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

Open
@AiDaiP

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions