Skip to content

getBlockByNumber scheme is not working on eth mainnet #120

@phoenix-web3

Description

@phoenix-web3
  • I have read the Contributing file of the documentation.
  • I have searched the issues (including closed ones) and believe that this is not a duplicate.

Issue

[INFO][2022-03-14 12:19:25.861504] Validating JSON schema with eth/rpcschemas/getblockbynumber_response.json
[ERROR][2022-03-14 12:19:25.864671] Error validation payload with schema: '0xe1dd2f9c957e53a4f5ec148dc73c016b334938def59a68294cc2c3a647bde935' is not of type 'object'

Failed validating 'type' in schema['properties']['uncles']['items']:
    {'properties': {'blockHash': {'type': 'string'},
                    'blockNumber': {'type': 'string'},
                    'from': {'type': 'string'},
                    'gas': {'type': 'string'},
                    'gasPrice': {'type': 'string'},
                    'hash': {'type': 'string'},
                    'input': {'type': 'string'},
                    'nonce': {'type': 'string'},
                    'r': {'type': 'string'},
                    's': {'type': 'string'},
                    'to': {'type': ['string', 'null']},
                    'transactionIndex': {'type': 'string'},
                    'v': {'type': 'string'},
                    'value': {'type': 'string'}},
     'type': 'object'}

On instance['uncles'][0]:
    '0xe1dd2f9c957e53a4f5ec148dc73c016b334938def59a68294cc2c3a647bde935'
[ERROR][2022-03-14 12:19:25.864768] Returning RPC error in error handler {'id': 1609070896412, 'jsonrpc': '2.0', 'error': {'code': 400, 'message': "'0xe1dd2f9c957e53a4f5ec148dc73c016b334938def59a68294cc2c3a647bde935' is not of type 'object'"}}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions