Skip to content

Retry API request on connection errors - #7

Merged
stefan-as merged 2 commits into
masterfrom
feature/retry_on_connection_error
Oct 27, 2020
Merged

Retry API request on connection errors#7
stefan-as merged 2 commits into
masterfrom
feature/retry_on_connection_error

Conversation

@stefan-as

Copy link
Copy Markdown
Contributor

No description provided.

@jonathanschlue-as jonathanschlue-as left a comment

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.

1 Frage im Code, approve schonmal! 👍

Comment on lines +37 to +38
# retry later, if we hit cdn rate limiting or on connection errors
raise e unless e.http_code == 520 || e.http_code.nil?

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.

👍 Mappt "connection error" 1-zu-1 auf "http_code.nil?" oder führen hier eventuell sogar noch andere Fehlerfälle zu nem Retry?

@stefan-as stefan-as Oct 27, 2020

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.

http_code.nil? bedeutet, dass nix sinnvolles per HTTP zurück gekommen ist. Das würde ich hier gelten lassen als: da ist was schief gegangen, nochmal probieren.

@stefan-as
stefan-as merged commit 0a22c89 into master Oct 27, 2020
@stefan-as
stefan-as deleted the feature/retry_on_connection_error branch October 27, 2020 15:43
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