feat: PRT - Suppress warning log from parser to debug on successful hash parsing #2983
GitHub Actions / Test Results
failed
Nov 5, 2024 in 0s
1 parse errors, 1 fail, 2 104 pass in 14m 44s
Annotations
Check failure on line 0 in artifacts/Test Results (Protocol E2E)/protocol-e2e-report.xml
github-actions / Test Results
Error processing result file
File is empty.
Raw output
artifacts/Test Results (Protocol E2E)/protocol-e2e-report.xml
Check warning on line 0 in github.com/lavanet/lava/v4/protocol/chainlib
github-actions / Test Results
TestJsonRpcChainProxy (github.com/lavanet/lava/v4/protocol/chainlib) failed
artifacts/Test Results (Protocol)/protocol-report.xml [took 0s]
Raw output
Failed
Nov 5 11:57:18 INF setting log level loglevel=debug
Nov 5 11:57:18 DBG connecting url=http://127.0.0.1:39019
Nov 5 11:57:18 DBG connecting url="ws://127.0.0.1:44951, addons: (websocket)"
Nov 5 11:57:18 INF Finished adding Clients Asynchronously free clients=1 url=http://127.0.0.1:39019
Nov 5 11:57:18 INF Finished adding Clients Asynchronously free clients=1 url="ws://127.0.0.1:44951, addons: (websocket)"
Nov 5 11:57:18 WRN failed to parse with legacy block parser error="blockParsing - parse failed. result=[] error=invalid parser input format, blockContainer is not map[string]interface{}. params=<nil> method= blockContainer=map[] key=hash unmarshaledDataTyped=[[34 48 120 49 48 97 55 97 48 56 34]]: when trying to parse, the value that we attempted to parse did not exist [/home/runner/go/pkg/mod/cosmossdk.io/[email protected]/errors.go:155]" resultParser="{ParserArg:[0 hash] ParserFunc:PARSE_CANONICAL DefaultValue: Encoding:hex}" rpcInput="{Result:[34 48 120 49 48 97 55 97 48 56 34] BaseMessage:{Headers:[] LatestBlockHeaderSetter:<nil> disableErrorHandling:false}}"
Nov 5 11:57:18 DBG GET_BLOCK_BY_NUM Failed ParseMessageResponse error="failed to parse with legacy block parser ErrMsg: blockParsing - parse failed. result=[] error=invalid parser input format, blockContainer is not map[string]interface{}. params=<nil> method= blockContainer=map[] key=hash unmarshaledDataTyped=[[34 48 120 49 48 97 55 97 48 56 34]]: when trying to parse, the value that we attempted to parse did not exist [/home/runner/go/pkg/mod/cosmossdk.io/[email protected]/errors.go:155] {rpcInput:{Result:[34 48 120 49 48 97 55 97 48 56 34] BaseMessage:{Headers:[] LatestBlockHeaderSetter:<nil> disableErrorHandling:false}},resultParser:{ParserArg:[0 hash] ParserFunc:PARSE_CANONICAL DefaultValue: Encoding:hex}}: blockParsing - parse failed. result=[] error=invalid parser input format, blockContainer is not map[string]interface{}. params=<nil> method= blockContainer=map[] key=hash unmarshaledDataTyped=[[34 48 120 49 48 97 55 97 48 56 34]]: when trying to parse, the value that we attempted to parse did not exist [/home/runner/go/pkg/mod/cosmossdk.io/[email protected]/errors.go:155]" Method=eth_getBlockByNumber Response="{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":\"0x10a7a08\"}" chainId=ETH1 nodeUrl=http://127.0.0.1:39019
jsonRPC_test.go:192:
Error Trace: /home/runner/work/lava/lava/protocol/chainlib/jsonRPC_test.go:192
Error: Not equal:
expected: "GET_BLOCK_BY_NUM Failed ParseMessageResponse {error:blockParsing - parse failed {error:invalid parser input format,"
actual : "GET_BLOCK_BY_NUM Failed ParseMessageResponse {error:failed to parse with legacy block parser ErrMsg: blockParsing -"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-GET_BLOCK_BY_NUM Failed ParseMessageResponse {error:blockParsing - parse failed {error:invalid parser input format,
+GET_BLOCK_BY_NUM Failed ParseMessageResponse {error:failed to parse with legacy block parser ErrMsg: blockParsing -
Test: TestJsonRpcChainProxy
Messages: GET_BLOCK_BY_NUM Failed ParseMessageResponse {error:failed to parse with legacy block parser ErrMsg: blockParsing - parse failed. result=[] error=invalid parser input format, blockContainer is not map[string]interface{}. params=<nil> method= blockContainer=map[] key=hash unmarshaledDataTyped=[[34 48 120 49 48 97 55 97 48 56 34]]: when trying to parse, the value that we attempted to parse did not exist [/home/runner/go/pkg/mod/cosmossdk.io/[email protected]/errors.go:155] {rpcInput:{Result:[34 48 120 49 48 97 55 97 48 56 34] BaseMessage:{Headers:[] LatestBlockHeaderSetter:<nil> disableErrorHandling:false}},resultParser:{ParserArg:[0 hash] ParserFunc:PARSE_CANONICAL DefaultValue: Encoding:hex}}: blockParsing - parse failed. result=[] error=invalid parser input format, blockContainer is not map[string]interface{}. params=<nil> method= blockContainer=map[] key=hash unmarshaledDataTyped=[[34 48 120 49 48 97 55 97 48 56 34]]: when trying to parse, the value that we attempted to parse did not exist [/home/runner/go/pkg/mod/cosmossdk.io/[email protected]/errors.go:155],chainId:ETH1,nodeUrl:http://127.0.0.1:39019,Method:eth_getBlockByNumber,Response:{"jsonrpc":"2.0","id":1,"result":"0x10a7a08"}}
Loading