[
https://issues.apache.org/jira/browse/HTTPCLIENT-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18005150#comment-18005150
]
ASF subversion and git services commented on HTTPCLIENT-2371:
-------------------------------------------------------------
Commit 945a75dd361193620d4961ceeacbef77e69e8c76 in httpcomponents-client's
branch refs/heads/master from Oleg Kalnichevski
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=945a75dd3 ]
HTTPCLIENT-2371: Logging of request re-execution at INFO priority
> http-client - Add option to turn on logging when a HTTP Client is waiting due
> to 429 Retry-After header
> -------------------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-2371
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2371
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient (classic)
> Affects Versions: 5.4.4
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 5.5.1
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When you call a remote HTTP service and it returns a HTTP status 429 (too
> many requests) and that it has a Retry-After header with a value such as 40,
> then there is no logging activity or something that can show this, and you
> may think something is wrong or the app is stuck.
> It would be good if there was some option to turn on|off or set a logging
> level so the
> HttpRequestRetryExec can show that its waiting
>
> For example a retryAfterLoggingLevel=INFO
>
> Then you can make some nice logging that the client is waiting due to 429 and
> that its waiting for 40 seconds until next attempt, and that you log also the
> current attempt number, and the Max Retries so you know how many loops there
> are still etc.
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]