Skip to content

Bonding curve account status sometime fails to decode #57

@quantitative-technologies

Description

This error frequently shows up in the trading logs:

trading-1  | 2025-05-09 06:55:24.441 | ERROR    | trading.executor:exec:82 - Failed to check launch status, cause: Failed to decode buffer: unpack requires a buffer of 49 bytes
trading-1  | Traceback (most recent call last):
trading-1  |
trading-1  |   File "/app/__pypackages__/3.10/lib/solbot_common/layouts/bonding_curve_account.py", line 94, in from_buffer
trading-1  |     ) = struct.unpack("<QQQQQQ?", buffer)
trading-1  |         │      │                  └ b'\x17\xb7\xf87`\xd8\xac`\xfa\xf2\x92\t\xf3\xac\x03\x00\xa6\xed\x88>\x07\x00\x00\x00\xfaZ\x80\xbda\xae\x02\x00\xa6AeB\x00\x00...
trading-1  |         │      └ <built-in function unpack>
trading-1  |         └ <module 'struct' from '/usr/local/lib/python3.10/struct.py'>
trading-1  |
trading-1  | struct.error: unpack requires a buffer of 49 bytes

The code expects the account info data to be 49 byte but this is not always the case.

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