You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It gets marked as :cognitect.anomalies/incorrect, presumably because the HTTP response code is 400. I tested this as follows:
(defseen-responses (atom []))
(defnmy-retriable?
[http-response]
(swap! seen-responses conj http-response)
(awsr/default-retriable?http-response))
;; call api a bunch of times until I see exceptions
(->> @seen-responses (filter (comp #{"Provisioned rate exceeded"} :Message)) first prn)
The metadata of that http-response is more instructive:
Which I appreciate is not very precise but at least "Provisioned rate exceeded" is pretty unambiguous looking :) And is presumably not even really the right place to do that, but it is a convenient workaround location.
The text was updated successfully, but these errors were encountered:
If there is a standard idiom for misreporting throttling across a bunch of AWS services it would make sense to support it, but if this is a one-off defect in Textract we should ask them to fix it there. WDYT?
I have no preference, I figured even a closed ticket would at least be searchable for the next person to step in this :) I also have no data on whether this is really just Textract (I'll happily believe it) or more services, and whether AWS would be inclined to fix it (I've had great results in getting them to update docs to match reality, but changing even buggy service behavior not so much).
Dependencies
Description with failing test case
Calling AWS Textract's
:StartExpenseAnalysis
too much will produce this error:It gets marked as
:cognitect.anomalies/incorrect
, presumably because the HTTP response code is 400. I tested this as follows:The metadata of that
http-response
is more instructive:Note that the status code is 400 even though the caller didn't do anything wrong here.
I understand if you don't really want to maintain a bunch of exceptions for faulty signaling. That is is de facto what I'm doing:
Which I appreciate is not very precise but at least "Provisioned rate exceeded" is pretty unambiguous looking :) And is presumably not even really the right place to do that, but it is a convenient workaround location.
The text was updated successfully, but these errors were encountered: