Skip to content

IndexError: list index out of range #19

@amani1104

Description

@amani1104

Payctl stopped working. The error I see on v1.1.0 is the following:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/scalecodec/types.py", line 966, in process
    return self.value_list[self.index]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/payctl", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/payctl/payctl.py", line 189, in main
    cmd_list(args, config)
  File "/usr/local/lib/python3.8/dist-packages/payctl/payctl.py", line 18, in cmd_list
    active_era = substrate.query(
  File "/usr/local/lib/python3.8/dist-packages/substrateinterface/base.py", line 1396, in query
    self.init_runtime(block_hash=block_hash)
  File "/usr/local/lib/python3.8/dist-packages/substrateinterface/base.py", line 1113, in init_runtime
    self.metadata_decoder = self.get_block_metadata(block_hash=runtime_block_hash, decode=True)
  File "/usr/local/lib/python3.8/dist-packages/substrateinterface/utils/caching.py", line 36, in wrapper
    return cached_func(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/substrateinterface/base.py", line 800, in get_block_metadata
    metadata_decoder.decode()
  File "/usr/local/lib/python3.8/dist-packages/scalecodec/base.py", line 386, in decode
    self.value = self.process()
  File "/usr/local/lib/python3.8/dist-packages/scalecodec/metadata.py", line 35, in process
    self.version = self.process_type('Enum', value_list=[
  File "/usr/local/lib/python3.8/dist-packages/scalecodec/base.py", line 446, in process_type
    obj.decode(check_remaining=False)
  File "/usr/local/lib/python3.8/dist-packages/scalecodec/base.py", line 386, in decode
    self.value = self.process()
  File "/usr/local/lib/python3.8/dist-packages/scalecodec/types.py", line 968, in process
    raise ValueError("Index '{}' not present in Enum value list".format(self.index))
ValueError: Index '14' not present in Enum value list

This is my config file:

[Defaults]
RPCURL = wss://kusama-rpc.polkadot.io/
Network = kusama
DepthEras = 10
MinEras = 1
SigningAccount=xxx
SigningSeed=xxx

[xxx]

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