Skip to content

Unicode error when saving file in in cache (python) #22

@antazoey

Description

@antazoey

Steps to reproduce

Call client.ens_address(name) in python with a successful name, such as belly.eth.

Expected behavior

Using python, when calling ens_address(), I'd expect to not get a UnicodeDecodeError almost every call.

Actual behavior

I get a UnicodeDecodeError almost every call.. Probably happens 9/10 times. It complains about a continuation byte. The line of code that fails is line 29

key = c.string_at(key).decode('utf8')

When setting a breaking point and reading the value of c.string_at(key), it looks like this:

b'ens:belly.eth:0:\xe0\xe5FX\x9b\x7f'

Which is obviously not a valid path to be saving...

System configuration

Mac OS python 3.8

Incubed version

Latest

Request

ens_address()

Incubed Configuration

SSL errors ignored

Chain

Mainnet

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