Skip to content

exception of type ya_market.exceptions.ApiException not handled gracefully during exit #13

Description

@krunch3r76
[2021-08-10T13:33:25.497-0700 DEBUG yapapi.rest.market] terminateAgreement(d488072e6b509da6a4cd53f367d669eee2a10175797e6cf91c405f30cf6c36e1) failed
Traceback (most recent call last):
  File "./entropythief.py", line 389, in <module>
    loop.run_until_complete(task)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 603, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
    self._run_once()
  File "/usr/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
    event_list = self._selector.select(timeout)
  File "/usr/lib/python3.8/selectors.py", line 468, in select
    fd_event_list = self._selector.poll(timeout, max_ev)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/krunch3r/.local/lib/python3.8/site-packages/yapapi/rest/market.py", line 85, in terminate
    await self._api.terminate_agreement(self._id, request_body=reason)
  File "/home/krunch3r/.local/lib/python3.8/site-packages/ya_market/api_client.py", line 205, in __call_api
    raise e
  File "/home/krunch3r/.local/lib/python3.8/site-packages/ya_market/api_client.py", line 193, in __call_api
    response_data = await self.request(
  File "/home/krunch3r/.local/lib/python3.8/site-packages/ya_market/rest.py", line 268, in POST
    return await self.request(
  File "/home/krunch3r/.local/lib/python3.8/site-packages/ya_market/rest.py", line 180, in request
    raise ApiException(http_resp=r)
ya_market.exceptions.ApiException: (500)
Reason: Internal Server Error
HTTP response headers: <CIMultiDictProxy('Content-Length': '446', 'Content-Type': 'application/json', 'Date': 'Tue, 10 Aug 2021 20:33:25 GMT')>
HTTP response body: {"message":"Protocol error while terminating: Terminate Agreement [R-d488072e6b509da6a4cd53f367d669eee2a10175797e6cf91c405f30cf6c36e1] GSB error: Remote service at `/net/0x69b0bd0dab9946f6f1a32eba89df43231c45413d/market/protocol/mk1/negotiation/provider/agreement/AgreementTerminated` error: Called service `/net/0x69b0bd0dab9946f6f1a32eba89df43231c45413d/market/protocol/mk1/negotiation/provider/agreement/AgreementTerminated` is unavailable.."}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions