Skip to content

Unable to get rpc data #42

@antazoey

Description

@antazoey

Steps to reproduce

Using python,

self._client = Client()
self._client.eth.block_number()

>>> Network might be unstable, try again later.
 Reason: b'cannot use a string pattern on a bytes-like object'

Digging in, it looks like it is trying to use json.loads() on a bytes value of a boolean.rpc_api.py, line 142 returns the bytes boolean from response.value and runtime.py trys to call json.loads() on it. I am not sure by observing the data what is supposed to be happening.

Expected behavior

I should get a dict response representing the json-rpc data

Actual behavior

It errors

System configuration

Incubed version

3.3.2

Request

I have tried block_numer() and gas_price()

Incubed Configuration

default

Chain

mainnet and goerli

Metadata

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