golemfactory / dapp-runner

GNU Lesser General Public License v3.0
5 stars 6 forks source link

Error during termination by ctrl+c #94

Open shadeofblue opened 1 year ago

shadeofblue commented 1 year ago

[2023-02-23T13:19:15.050+0100 INFO yapapi.summary] [Job 1] Agreement proposed to provider 'sharkoon_378.h' (0x6e53d47fa38d9e768fabc0b6ad42910148ffbc4b)
[2023-02-23T13:19:15.163+0100 ERROR asyncio] Task exception was never retrieved
future: <Task finished name='Task-540' coro=<Job._handle_proposal() done, defined at /Users/marcin/.envs/dapps/lib/python3.9/site-packages/yapapi/engine.py:830> exception=ApiException()>
Traceback (most recent call last):
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/dapp_runner/runner/__init__.py", line 147, in start_runner
    loop.run_until_complete(task)
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 634, in run_until_complete
    self.run_forever()
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
    self._run_once()
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1869, in _run_once
    event_list = self._selector.select(timeout)
  File "/usr/local/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/selectors.py", line 562, in select
    kev_list = self._selector.control(None, max_ev, timeout)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/yapapi/engine.py", line 892, in _handle_proposal
    await proposal.respond(demand_builder.properties, demand_builder.constraints)
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/yapapi/rest/market.py", line 165, in respond
    new_proposal = await self._subscription._api.counter_proposal_demand(
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/ya_market/api_client.py", line 205, in __call_api
    raise e
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/ya_market/api_client.py", line 193, in __call_api
    response_data = await self.request(
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/ya_market/rest.py", line 268, in POST
    return await self.request(
  File "/Users/marcin/.envs/dapps/lib/python3.9/site-packages/ya_market/rest.py", line 180, in request
    raise ApiException(http_resp=r)
ya_market.exceptions.ApiException: (410)
Reason: Gone
HTTP response headers: <CIMultiDictProxy('Content-Length': '156', 'Content-Type': 'application/json', 'Date': 'Thu, 23 Feb 2023 12:19:15 GMT')>
HTTP response body: {"message":"Proposal [R-19a7b0288a780cb1920b580a1e3dc2f17d6201e2a1eb5018f573c8510f38cf02] already has counter proposal. Can't counter for the second time."}

[2023-02-23T13:19:15.603+0100 INFO yapapi.summary] [Job 1] Accepted invoice from 'imapp2020.h', amount: 0.002772736158150000
....