Skip to content

Change to errored status if belamor returns error - #465

Draft
Nitr wants to merge 1 commit into
masterfrom
wothdrawal_errored_on_send_coins
Draft

Change to errored status if belamor returns error#465
Nitr wants to merge 1 commit into
masterfrom
wothdrawal_errored_on_send_coins

Conversation

@Nitr

@Nitr Nitr commented Oct 9, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@Nitr
Nitr requested a review from radanisk October 9, 2022 05:00
@Nitr
Nitr force-pushed the wothdrawal_errored_on_send_coins branch 2 times, most recently from d59322d to 28b4ea5 Compare October 9, 2022 05:11
@Nitr
Nitr force-pushed the wothdrawal_errored_on_send_coins branch from 28b4ea5 to 6b09f3e Compare October 10, 2022 13:38
Comment thread app/models/withdraw.rb
remote_id: id,
meta: { note: note }
)
rescue StandardError => e

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а какую ошибку отдает Belomor? нельзя делать rescue на BelomorClient::Error или Belomor::WrongResponse?

cо StandardError очень легко важные ошибки пропустить

@Nitr Nitr Oct 12, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а как пропустить? мы же их в багснаг отправляем и вывод в errored отправляем.
можно наврено Faraday::Error отлавливать вместо StandardError

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я за Faraday::ConnectionFailed

@Nitr Nitr Oct 12, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Еще BelomorClient не райзит ошибки, он просто возвращает :bad_request

@radanisk
radanisk marked this pull request as draft November 1, 2022 10:58
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.

2 participants