fix: change 'internal_failure' condition to also use `error' field (#387)

* fix: change `internal_failure` condition to also use `error' field

In some cases response doesn't contain `error_description` field. So the retry won't work. The solution is to look at both `error` and `error_description` fields.
2 files changed