Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Avoid parent container KeyError #167

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

AlexV525
Copy link
Contributor

2024-04-17 15:43:44,250ERROR:ElectrumX:[0] exception handling Request('blockchain.atomicals.list', [40, -1, 0])
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/aiorpcX-0.22.1-py3.10.egg/aiorpcx/session.py", line 481, in _throttled_request
    result = await self.handle_request(request)
  File "/data/atomicals-electrumx/electrumx/server/session.py", line 1212, in handle_request
    return await coro
  File "/data/atomicals-electrumx/electrumx/server/session.py", line 1594, in atomicals_list
    return await self.atomicals_list_get(offset, limit, asc)
  File "/data/atomicals-electrumx/electrumx/server/session.py", line 1536, in atomicals_list_get
    atomical = await self.atomical_id_get(location_id_bytes_to_compact(atomical_id))
  File "/data/atomicals-electrumx/electrumx/server/session.py", line 1438, in atomical_id_get
    atomical = await self.session_mgr.bp.get_base_mint_info_rpc_format_by_atomical_id(atomical_id)
  File "/data/atomicals-electrumx/electrumx/server/block_processor.py", line 2055, in get_base_mint_info_rpc_format_by_atomical_id
    atomical_result = await self.get_base_mint_info_by_atomical_id_async(atomical_id)
  File "/data/atomicals-electrumx/electrumx/server/block_processor.py", line 2328, in get_base_mint_info_by_atomical_id_async
    return await run_in_thread(read_atomical)
  File "/usr/local/lib/python3.10/dist-packages/aiorpcX-0.22.1-py3.10.egg/aiorpcx/curio.py", line 57, in run_in_thread
    return await get_event_loop().run_in_executor(None, func, *args)
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/data/atomicals-electrumx/electrumx/server/block_processor.py", line 2327, in read_atomical
    return that.get_base_mint_info_by_atomical_id(atomical_id)
  File "/data/atomicals-electrumx/electrumx/server/block_processor.py", line 2317, in get_base_mint_info_by_atomical_id
    self.populate_extended_atomical_subtype_info(atomical)
  File "/data/atomicals-electrumx/electrumx/server/block_processor.py", line 2625, in populate_extended_atomical_subtype_info
    self.populate_dmitem_subtype_specific_fields(atomical)
  File "/data/atomicals-electrumx/electrumx/server/block_processor.py", line 2570, in populate_dmitem_subtype_specific_fields
    atomical['$parent_container_name'] = parent_container['$container']
KeyError: '$container'

@AlexV525 AlexV525 force-pushed the fix/populate-parent-container-name branch from c6fe4ef to bd68ebd Compare April 18, 2024 05:15
@AlexV525 AlexV525 merged commit 97b85d3 into develop Apr 18, 2024
1 check passed
@AlexV525 AlexV525 deleted the fix/populate-parent-container-name branch April 18, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants