polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
239 stars 111 forks source link

Sudden error when accessing ANY method via py substrate interface #340

Closed DanielMS93 closed 1 year ago

DanielMS93 commented 1 year ago

I have encountered an issue recently when trying to access any method.

Specifically, I am using the acala network via:

        acala_substrate = SubstrateInterface(
            url="wss://acala-rpc-1.aca-api.network",
            ss58_format=10,
            type_registry_preset="acala",
        )
image

Another method call example:

image

Any ideas why, this has totally broken my application and i am unclear what has changed...

DanielMS93 commented 1 year ago

Update: I was able to access the get_block() method when installing fresh on my local - will try updating the package on my VM

arjanz commented 1 year ago

I saw the exception raised in get_chain_head(), which could be related to a recent change to determine supported RPC methods. Newer Substrate RPC dropped some older RPC aliases.

This change is available since v1.6.1 release, maybe you had the library pinned to an older version and there was a runtime upgrade on Acala recently?

arjanz commented 1 year ago

@DanielMS93 Are you still experiencing this issue?

DanielMS93 commented 1 year ago

Thanks for getting back @arjanz! i upgraded my version to latest and all issues were resolved! apologies for not updating this thread!