Skip to content

Infinite retry when /oauth/token returns 401 #1026

@Albertoimpl

Description

@Albertoimpl

Using the version "4.2.0.RELEASE"

We can reproduce a behaviour if using a wrong client-secret it gets into an infinite retry:

19-12-2019 11:54:16.847 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.token.lambda$token$14 - Negotiating using token provider
19-12-2019 11:54:16.858 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 200    / (484 ms)
19-12-2019 11:54:17.382 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - GET    /
19-12-2019 11:54:17.601 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 200    / (218 ms)
19-12-2019 11:54:17.988 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - GET    /v2/info
19-12-2019 11:54:18.208 [cloudfoundry-client-nio-1] WARN  cloudfoundry-client.trust.trust - Trusting SSL Certificate for login.cf.salmon.springapps.io:443
19-12-2019 11:54:18.275 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 200    /v2/info (287 ms)
19-12-2019 11:54:19.019 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.trust.lambda$trust$1 - Trusted SSL Certificate for login.cf.salmon.springapps.io:443
19-12-2019 11:54:19.652 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:20.138 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (485 ms)
19-12-2019 11:54:20.524 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:21.068 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:21.069 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:21.424 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:21.424 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:21.889 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:21.889 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:22.231 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:22.232 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (1 ms)
19-12-2019 11:54:22.461 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:22.461 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:22.706 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:22.707 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:22.938 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:22.939 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:23.173 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:23.173 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)
19-12-2019 11:54:23.526 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.request.request - POST   /oauth/token
19-12-2019 11:54:23.527 [cloudfoundry-client-nio-1] DEBUG cloudfoundry-client.response.response - 401    /oauth/token (0 ms)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions