Skip to content

WARNING - Attempt #: Failed to get a valid response for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0 #14

@TheStophe

Description

@TheStophe

Warning in the logs that could use troubleshooting and improved robustness checks. Logs:

'''

WARNING - Attempt 1: Failed to get a valid response for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0
WARNING - Attempt 2: Failed to get a valid response for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0
WARNING - Attempt 3: Failed to get a valid response for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0
WARNING - Attempt 4: Failed to get a valid response for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0
WARNING - Attempt 5: Failed to get a valid response for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0
ERROR - Failed to get a valid response after 5 retries for URL: https://api.ergoplatform.com/api/v1/boxes/unspent/byAddress/None?limit=70&offset=0
ERROR - Exception
Traceback (most recent call last):
File "/home/cwatts/ergo/duckpools/off-chain-bot/main.py", line 52, in
e_update_interest_rate(pool, curr_height, curr_tx_obj, dummy_script)
File "/home/cwatts/ergo/duckpools/off-chain-bot/erg_pool/e_interest_rate.py", line 89, in e_update_interest_rate
dummy_box = get_dummy_box(dummy_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cwatts/ergo/duckpools/off-chain-bot/helpers/explorer_calls.py", line 55, in get_dummy_box
boxes_json = get_unspent_boxes_by_address(dummy_script, 300)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cwatts/ergo/duckpools/off-chain-bot/helpers/explorer_calls.py", line 15, in get_unspent_boxes_by_address
data = json.loads(response.text).get('items', [])
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'
'''

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