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

Send friendly messages if cant acquire counteragent #28

Merged
merged 3 commits into from
Jan 11, 2025

Conversation

nkiryanov
Copy link
Contributor

Основное изменение: отправляем в sentry не исключения, а сообщения когда не можем добавить приглашение контрагнету с ошибкой в diadoc 409. Нужно чтоб было понятно, что это не ошибки, а ожидаемое поведение.

Решить по нормальному (проверять перед отправкой приглашения можем ли ему отправить) пока не могу — вроде у диадок есть API методы для этого, но они возвращают ошибочные данные. Возможно это я что-то пропустил в их API и хорошо бы узнать у поддержки, но к ней обратиться можно только за оч много $.

Дополнительно: у диадок обновился API, переехал с устаревших методов на новые.

1. Migrate to updated APIs
2. Capture acquire ca errors differently:
    - 409 errors as expected ones as simple messages
    - the left ones as exceptions
@nkiryanov nkiryanov merged commit 82f99e0 into master Jan 11, 2025
3 checks passed
@nkiryanov nkiryanov deleted the send-friendly-messages-if-cant-acquire-counteragent branch January 11, 2025 18:00
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

Successfully merging this pull request may close these issues.

1 participant