Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled ya_payment.ApiException when failed to accept debit note #121

Open
lucekdudek opened this issue Nov 14, 2023 · 0 comments
Open

Comments

@lucekdudek
Copy link
Contributor

[2023-11-14 15:13:04,816] [ERROR  ] [golem.event_bus.in_memory.event_bus] Encountered an error in `<bound method PayAllPaymentManager._pay_debit_note_if_received of <golem.managers.payment.pay_all.PayAllPaymentManager object at 0x7fe05dc2e260>>` callback while handling `NewDebitNote(DebitNote(59cf9f9c-66b5-4d3f-8559-2c49b3abe727))`!
Traceback (most recent call last):
  File "/home/lucjan/Repos/golem-core-python/golem/event_bus/in_memory/event_bus.py", line 170, in _process_event
    await callback_info.callback(event)
  File "/home/lucjan/Repos/golem-core-python/golem/utils/logging.py", line 227, in _async_wrapper
    result = await func(*args, **kwargs)
  File "/home/lucjan/Repos/golem-core-python/golem/managers/payment/pay_all.py", line 138, in _pay_debit_note_if_received
    await self._accept_debit_note(debit_note)
  File "/home/lucjan/Repos/golem-core-python/golem/utils/logging.py", line 227, in _async_wrapper
    result = await func(*args, **kwargs)
  File "/home/lucjan/Repos/golem-core-python/golem/managers/payment/pay_all.py", line 117, in _accept_debit_note
    await debit_note.accept_full(self._allocation)
  File "/home/lucjan/Repos/golem-core-python/golem/resources/debit_note/debit_note.py", line 29, in accept_full
    await self.accept(allocation, Decimal(amount_str))
  File "/home/lucjan/Repos/golem-core-python/golem/resources/base.py", line 60, in wrapper
    return await f(*args, **kwargs)
  File "/home/lucjan/Repos/golem-core-python/golem/resources/debit_note/debit_note.py", line 36, in accept
    await self.api.accept_debit_note(self.id, acceptance)
  File "/home/lucjan/Repos/golem-ray/.venv/lib/python3.10/site-packages/ya_payment/api_client.py", line 206, in __call_api
    raise e
  File "/home/lucjan/Repos/golem-ray/.venv/lib/python3.10/site-packages/ya_payment/api_client.py", line 194, in __call_api
    response_data = await self.request(
  File "/home/lucjan/Repos/golem-ray/.venv/lib/python3.10/site-packages/ya_payment/rest.py", line 268, in POST
    return await self.request(
  File "/home/lucjan/Repos/golem-ray/.venv/lib/python3.10/site-packages/ya_payment/rest.py", line 180, in request
    raise ApiException(http_resp=r)
ya_payment.exceptions.ApiException: (400)
Reason: Bad Request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant