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] Ignore Query Id Invalid #81

Open
0xphilipp opened this issue Aug 4, 2023 · 0 comments
Open

[BUG] Ignore Query Id Invalid #81

0xphilipp opened this issue Aug 4, 2023 · 0 comments
Assignees

Comments

@0xphilipp
Copy link

While Testing I got the following error which shut down the relayer.

Our contract has the possibility to update / refresh queries, but instead of updating them we are removing the old query id and creating a new query due to simplicity.

When executing this kind of remove + register, the relayer crashes.

"{"level":"error","ts":"2023-08-04T14:16:34.600674923Z","caller":"cmd/start.go:143","msg":"Subscriber exited with an error","context":"main","error":"failed to processUpdateEvent: failed to getNeutronRegisteredQuery: failed to get NeutronInterchainqueriesRegisteredQuery: [GET /neutron/interchainqueries/registered_query][400] NeutronInterchainQueriesRegisteredQuery default &{Code:3 Details:[] Message:\ngithub.com/cosmos/cosmos-sdk/baseapp.gRPCErrorToSDKError\n\tgithub.com/cosmos/[email protected]/baseapp/abci.go:614\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).handleQueryGRPC\n\tgithub.com/cosmos/[email protected]/baseapp/abci.go:603\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Query\n\tgithub.com/cosmos/[email protected]/baseapp/abci.go:445\ngithub.com/tendermint/tendermint/abci/client.(*localClient).QuerySync\n\tgithub.com/tendermint/[email protected]/abci/client/local_client.go:256\ngithub.com/tendermint/tendermint/proxy.(*appConnQuery).QuerySync\n\tgithub.com/tendermint/[email protected]/proxy/app_conn.go:159\ngithub.com/tendermint/tendermint/rpc/core.ABCIQuery\n\tgithub.com/tendermint/[email protected]/rpc/core/abci.go:20\ngithub.com/tendermint/tendermint/rpc/client/local.(*Local).ABCIQueryWithOptions\n\tgithub.com/tendermint/[email protected]/rpc/client/local/local.go:87\ngithub.com/cosmos/cosmos-sdk/client.Context.queryABCI\n\tgithub.com/cosmos/[email protected]/client/query.go:94\ngithub.com/cosmos/cosmos-sdk/client.Context.QueryABCI\n\tgithub.com/cosmos/[email protected]/client/query.go:57\ngithub.com/cosmos/cosmos-sdk/client.Context.Invoke\n\tgithub.com/cosmos/[email protected]/client/grpc_query.go:81\ngithub.com/neutron-org/neutron/x/interchainqueries/types.(*queryClient).RegisteredQuery\n\tgithub.com/neutron-org/neutron/x/interchainqueries/types/query.pb.go:669\ngithub.com/neutron-org/neutron/x/interchainqueries/types.request_Query_RegisteredQuery_0\n\tgithub.com/neutron-org/neutron/x/interchainqueries/types/query.pb.gw.go:105\ngithub.com/neutron-org/neutron/x/interchainqueries/types.RegisterQueryHandlerClient.func3\n\tgithub.com/neutron-org/neutron/x/interchainqueries/types/query.pb.gw.go:409\ngithub.com/grpc-ecosystem/grpc-gateway/runtime.(*ServeMux).ServeHTTP\n\tgithub.com/grpc-ecosystem/[email protected]/runtime/mux.go:240\ngithub.com/gorilla/mux.(*Router).ServeHTTP\n\tgithub.com/gorilla/[email protected]/mux.go:210\ngithub.com/tendermint/tendermint/rpc/jsonrpc/server.maxBytesHandler.ServeHTTP\n\tgithub.com/tendermint/[email protected]/rpc/jsonrpc/server/http_server.go:256\ngithub.com/tendermint/tendermint/rpc/jsonrpc/server.RecoverAndLogHandler.func1\n\tgithub.com/tendermint/[email protected]/rpc/jsonrpc/server/http_server.go:229\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2122\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2936\nnet/http.(*conn).serve\n\tnet/http/server.go:1995\nfailed to get registered query by query id: there is no query with id: 7: invalid query id [neutron-org/neutron/x/interchainqueries/keeper/keeper.go:105]: invalid query id: invalid request}","stacktrace":"github.com/neutron-org/neutron-query-relayer/cmd/neutron_query_relayer/cmd.startRelayer.func4\n\t/app/cmd/neutron_query_relayer/cmd/start.go:143"}"

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

2 participants