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
CaseClauseError: no case clause matching: {:error, "timeout"}
ExAws.Request.request_and_retry/7 (ex_aws)(lib/ex_aws/request.ex:38)
ExAws.Operation.ExAws.Operation.JSON.perform/2 (ex_aws)(lib/ex_aws/operation/json.ex:50)
MyApp.EnvVar.create_secret_in_aws/4 (myapp)(lib/myapp/instances/env_var.ex:172)
Note, these timeouts are rare and transient. This same app code works 100s of times a day, but occasionally like this apparently from either a network or AWS failure.
Expected behavior
I would expect timeouts to either be retried or gracefully return an error.
The text was updated successfully, but these errors were encountered:
Looking at past occurances, this error also happens for CaseClauseError no case clause matching: {:error, "socket closed"} in the same location. It would be good to fix both of these together.
Environment
mix deps |grep ex_aws
mix deps | grep hackney
Current behavior
Include code samples, errors and stacktraces if appropriate.
When calling
ExAws.request/2
(in this case withExAws.SecretsManager.create_secret/4
operation) and a timeout occurs,ExAws.Request.request_and_retry/7
does not have a matching case statement, so fails:Note, these timeouts are rare and transient. This same app code works 100s of times a day, but occasionally like this apparently from either a network or AWS failure.
Expected behavior
I would expect timeouts to either be retried or gracefully return an error.
The text was updated successfully, but these errors were encountered: