Claus Ibsen created HTTPCLIENT-2371:
---------------------------------------
Summary: 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
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]