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

Provider agent incorrectly computes costs #3109

Open
nieznanysprawiciel opened this issue Mar 15, 2024 · 0 comments
Open

Provider agent incorrectly computes costs #3109

nieznanysprawiciel opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nieznanysprawiciel
Copy link
Contributor

nieznanysprawiciel commented Mar 15, 2024

It seems that usage counters are incorrect

[2024-03-08T16:23:10.132+0000 INFO  ya_provider::payments::payments] Updating cost for activity [da6e99fff70b451aaf06d3ec4f7b9ad9]: 0.03217862825555556, usage [1935.026589, 115.84306172].

And later:

[2024-03-08T16:23:14.374+0000 INFO  ya_provider::payments::payments] Updating cost for activity [da6e99fff70b451aaf06d3ec4f7b9ad9]: 0.03160953899972222, usage [1897.026589, 113.794340399].
...
[2024-03-08T16:23:14.425+0000 INFO  ya_provider::payments::payments] Final cost for activity [da6e99fff70b451aaf06d3ec4f7b9ad9]: 0.03160953899972222.

This results in error during sending invoice:

[2024-03-08T16:23:22.466+0000 ERROR ya_provider::payments::payments] Error issuing invoice: HTTP error requesting POST http://127.0.0.1:7465/payment-api/v1/invoices: 400 Bad Request; msg: 'Requested amount for agreement cannot be lowered. Current amount requested: 0.03217862825555556 Amount on invoice: 0.03160953899972222' Retry in 5s.

auspicious-beetle.zip

@nieznanysprawiciel nieznanysprawiciel added the bug Something isn't working label Mar 15, 2024
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

1 participant