golemfactory / golem-core-python

GNU General Public License v3.0
3 stars 2 forks source link

Unhandled exception on calling ExpirableBuffer expiry too late #142

Closed lucekdudek closed 7 months ago

lucekdudek commented 8 months ago
HTTP response body: {"message":"Subscription [611214c071fd4ae990f055a6254df49e-14ac716de4b9663d2e8aef74adf52629addf528137ef960383dddae8e5efa795] expired."}
HTTP response headers: <CIMultiDictProxy('Content-Length': '135', 'Content-Type': 'application/json', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Date': 'Sat, 24 Feb 2024 02:33:16 GMT')>
Reason: Bad Request
ya_market.exceptions.ApiException: (400)
    raise ApiException(http_resp=r)
  File "/usr/local/lib/python3.10/site-packages/ya_market/rest.py", line 180, in request
    return await self.request(
  File "/usr/local/lib/python3.10/site-packages/ya_market/rest.py", line 268, in POST
    response_data = await self.request(
  File "/usr/local/lib/python3.10/site-packages/ya_market/api_client.py", line 193, in __call_api
    raise e
  File "/usr/local/lib/python3.10/site-packages/ya_market/api_client.py", line 205, in __call_api
    await self.api.reject_proposal_offer(
  File "/usr/local/lib/python3.10/site-packages/golem/resources/proposal/proposal.py", line 147, in reject
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/golem/resources/base.py", line 60, in wrapper
    await proposal.reject("Proposal no longer needed due to its near expiration.")
  File "/usr/local/lib/python3.10/site-packages/golem/managers/proposal/plugins/buffer.py", line 68, in _on_expired
    return await value
  File "/usr/local/lib/python3.10/site-packages/golem/utils/asyncio/tasks.py", line 71, in resolve_maybe_awaitable
    await resolve_maybe_awaitable(self._on_expired_func(item))
  File "/usr/local/lib/python3.10/site-packages/golem/utils/asyncio/buffer.py", line 314, in _expire_item
    return task.result()
  File "/usr/local/lib/python3.10/site-packages/golem/utils/asyncio/tasks.py", line 40, in _handle_task_logging
Traceback (most recent call last):
[2024-02-24 02:33:16,609] [ERROR  ] [golem.utils.asyncio.tasks] Background async task encountered unhandled exception!
mateuszsrebrny commented 7 months ago

intercept and silense :)