This repository was archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
API is not serving requests #238
Copy link
Copy link
Closed
Description
Hi, team. Recently we upgraded our node to 0.7.2 and faced the following issue with the API server:
Aug 24 09:35:33 ip-172-31-29-224 bnbcli: E[2020-08-24|09:35:33.664] Panic in RPC HTTP handler module=apiserv err="Unmarshal expects a pointer" stack="goroutine 834189 [running]:\nruntime/debug.Stack(0xc000a57198, 0x10841c0, 0x155c2c0)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x9d\ngithub.com/tendermint/tendermint/rpc/lib/server.RecoverAndLogHandler.func1.1(0xc000350ce0, 0x159c660, 0xc0000cda80, 0xbfc900596764c450, 0x17c34595f3ff1, 0x1f20fc0, 0xc000a35a00)\n\t/Users/huangsuyu/go/pkg/mod/github.com/binance-chain/bnc-tendermint@v0.32.3-binance.1/rpc/lib/server/http_server.go:161 +0x486\npanic(0x10841c0, 0x155c2c0)\n\t/usr/local/go/src/runtime/panic.go:679 +0x1b2\ngithub.com/tendermint/go-amino.(*Codec).UnmarshalBinaryBare(0xc0000fc460, 0xc00017c0f1, 0x41, 0x41, 0x0, 0x0, 0x0, 0x0)\n\t/Users/huangsuyu/go/pkg/mod/github.com/binance-chain/bnc-go-amino@v0.14.1-binance.2/amino.go:325 +0x871\ngithub.com/tendermint/go-amino.(*Codec).UnmarshalBinaryLengthPrefixed(0xc0000fc460, 0xc00017c0f0, 0x41, 0x42, 0x0, 0x0, 0x0, 0x7ffdc0b72f05)\n\t/Users/huangsuyu/go/pkg/mod/github.com/binance-chain/bnc-go-amino@v0.14.1-binance.2/amino.go:253 +0xf3\ngithub.com/binance-chain/node/plugins/tokens/client/rest.getTokenInfo(0xc0000fc460, 0xc000a0abd0, 0x15ba380, 0xc0009bb470, 0x157ae20, 0xc0000b2008, 0x0, 0x7ffdc0b72f05, 0x15, 0x0, ...)\n\t/Users/huangsuyu/go/src/github.com/binance-chain/node/plugins/tokens/client/rest/gettoken.go:30 +0x1f4\ngithub.com/binance-chain/node/plugins/tokens/client/rest.GetTokenReqHandler.func2(0x1595e60, 0xc000350ce0, 0xc000a35c00)\n\t/Users/huangsuyu/go/src/github.com/binance-chain/node/plugins/tokens/client/rest/gettoken.go:69 +0x219\nnet/http.HandlerFunc.ServeHTTP(0xc000a96200, 0x1595e60, 0xc000350ce0, 0xc000a35c00)\n\t/usr/local/go/src/net/http/server.go:2007 +0x44\ngithub.com/gorilla/mux.(*Router).ServeHTTP(0xc00033ecc0, 0x1595e60, 0xc000350ce0, 0xc000a35a00)\n\t/Users/huangsuyu/go/pkg/mod/github.com/gorilla/mux@v1.7.3/mux.go:212 +0xe2\ngithub.com/tendermint/tendermint/rpc/lib/server.maxBytesHandler.ServeHTTP(0x1579940, 0xc00033ecc0, 0x0, 0x1595e60, 0xc000350ce0, 0xc000a35a00)\n\t/Users/huangsuyu/go/pkg/mod/github.com/binance-chain/bnc-tendermint@v0.32.3-binance.1/rpc/lib/server/http_server.go:206 +0xcf\ngithub.com/tendermint/tendermint/rpc/lib/server.RecoverAndLogHandler.func1(0x1596660, 0xc000a121c0, 0xc000a35a00)\n\t/Users/huangsuyu/go/pkg/mod/github.com/binance-chain/bnc-tendermint@v0.32.3-binance.1/rpc/lib/server/http_server.go:179 +0x33f\nnet/http.HandlerFunc.ServeHTTP(0xc000bbd2c0, 0x1596660, 0xc000a121c0, 0xc000a35a00)\n\t/usr/local/go/src/net/http/server.go:2007 +0x44\nnet/http.serverHandler.ServeHTTP(0xc0010ec000, 0x1596660, 0xc000a121c0, 0xc000a35a00)\n\t/usr/local/go/src/net/http/server.go:2802 +0xa4\nnet/http.(*conn).serve(0xc000b66460, 0x159b220, 0xc000a968c0)\n\t/usr/local/go/src/net/http/server.go:1890 +0x875\ncreated by net/http.(*Server).Serve\n\t/usr/local/go/src/net/http/server.go:2927 +0x38e\n"
Aug 24 09:35:33 ip-172-31-29-224 bnbcli: 2020/08/24 09:35:33 http: panic serving 10.10.2.76:45540: interface conversion: string is not error: missing method Error
Could you help us solving it? It is kinda critical for our application.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels