SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Jun 27, 2024 3:33:11 AM com.google.auth.oauth2.DefaultCredentialsProvider warnAboutProblematicCredentials
WARNING: You are authenticating using user credentials. For production, we recommend using service account credentials.
To learn more about service account credentials, see http://cloud.google.com/docs/authentication/external/set-up-adc-on-cloud
Project display name: [REDACTED]
Process finished with exit code 0
Caveats
We cannot set SocketTimeout when inside ApacheHttpRequest, so I used an indirect way of setting a read timeout via RequestTimeout. This is because we cannot set low and high level configurations in the HttpUriRequest
I did not dig deeper, but only CloseableHttpClient could produce a CloseableHttpResponse with the needed data such as status code, content encoding, etc. This made me modify the interface of ApacheHttpTransport to only accept CloseableHttpClients
Output of
Main
class:Caveats
SocketTimeout
when insideApacheHttpRequest
, so I used an indirect way of setting a read timeout viaRequestTimeout
. This is because we cannot set low and high level configurations in theHttpUriRequest
CloseableHttpClient
could produce aCloseableHttpResponse
with the needed data such as status code, content encoding, etc. This made me modify the interface ofApacheHttpTransport
to only acceptCloseableHttpClients