Skip to content

Passed

org.eclipse.ditto.gateway.service.security.authentication.jwt.DittoPublicKeyProviderTest.verifyThatKeyIsNotCachedOnErrorResponseFromDiscoveryEndpoint

Took 0.1 sec.

Standard Output

2024-04-08 10:56:13,856 INFO  [][] o.e.d.g.s.s.a.j.DittoPublicKeyProvider  - Got non success response from public key provider with status code: <503 Service Unavailable> and body: <{"message":"Something went wrong."}>.
2024-04-08 10:56:13,862 INFO  [][] o.e.d.g.s.s.a.j.DittoPublicKeyProvider  - Got non success response from public key provider with status code: <503 Service Unavailable> and body: <{"message":"Something went wrong."}>.

Standard Error

Apr 08, 2024 10:56:13 AM com.github.benmanes.caffeine.cache.LocalAsyncCache lambda$handleCompletion$7
WARNING: Exception thrown during asynchronous load
java.util.concurrent.CompletionException: GatewayAuthenticationProviderUnavailableException [message='Got unexpected response from public key provider.', errorCode=gateway:authentication.provider.unavailable, httpStatus=HttpStatus [code=503, category=SERVER_ERROR], description='If after retry it is still unavailable, please contact the service t
...[truncated 14032 chars]...
JsonObject(DittoPublicKeyProvider.java:246)
	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:144)
	at org.eclipse.ditto.gateway.service.security.authentication.jwt.DittoPublicKeyProvider.getPublicKeysFromDiscoveryEndpoint(DittoPublicKeyProvider.java:235)
	... 51 more