Receiving oauth:grant-type:jwt-bearer. Error msg: Stream timeout errors on API Gateways
search cancel

Receiving oauth:grant-type:jwt-bearer. Error msg: Stream timeout errors on API Gateways

book

Article ID: 280621

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Receiving oauth:grant-type:jwt-bearer. Error msg: Stream timeout errors on API Gateways

We are seeing multiple errors related to timeouts for oauth tokens:

https://example:8443/oauth/validation/validate/v2/token?id_token=<redacted>&id_token_type=urn:ietf:params:oauth:grant-type:jwt-bearer. Error msg: Stream timeout

Problem routing to https://example:8443/oauth/validation/validate/v2/token?id_token=<redacted>&id_token_type=urn:ietf:params:oauth:grant-type:jwt-bearer. Error msg: Unable to obtain HTTP response from https://example:8443/oauth/validation/validate/v2/token?id_token=<redacted>&id_token_type=urn:ietf:params:oauth:grant-type:jwt-bearer: Read timed out. Timed out at 60000ms

https://example:8443/oauth/validation/validate/v2/token?id_token=<redacted>&id_token_type=urn:ietf:params:oauth:grant-type:jwt-bearer. Error msg: java.io.IOException: Unable to unwrap data, invalid status [CLOSED]

Environment

ssg 10.1 x

Resolution

Remove the  autoReconnect=true from JDBC connection string resolve the problem. 

jdbc:mysql://example-JDBC1.com:3306,example-JDBC2.com:3306/otk_db?failOverReadOnly=false&autoReconnect=true&connectTimeout=2000

AutoReconnect is not recommended by document: 

https://dev.mysql.com/doc/connector-j/en/connector-j-connp-props-high-availability-and-clustering.html#cj-conn-prop_autoReconnect