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

Payment account not active for new identity #2902

Open
nieznanysprawiciel opened this issue Nov 21, 2023 · 1 comment
Open

Payment account not active for new identity #2902

nieznanysprawiciel opened this issue Nov 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@nieznanysprawiciel
Copy link
Contributor

nieznanysprawiciel commented Nov 21, 2023

Problem exists on both drivers.

Reproduction:

  • Create new identity (+ app-key of course)
  • Run Requestor using new identity instead of default

Result:

ya_payment.exceptions.ApiException: (500)
Reason: Internal Server Error
HTTP response headers: <CIMultiDictProxy('content-length': '76', 'content-type': 'application/json', 'vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'date': 'Tue, 21 Nov 2023 13:59:29 GMT')>
HTTP response body: {"message":"Account not active: 0x8f8c7eb38013f57acf44fd36fcb2847810166b2a"}

Driver initializes list of active accounts only once on yagna start:

active_accounts: AccountsArc,

Yagna daemon needs to be restarted for new account to be visible.

Acceptance criteria:

  • Listen to identity events related to identity creation
  • Add new account to driver in runtime
@nieznanysprawiciel nieznanysprawiciel added the bug Something isn't working label Nov 21, 2023
@prekucki
Copy link
Member

prekucki commented Feb 13, 2024

for old driver it was fixed in 2816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants