I am working with different DXA 2.0 Webapplications together with SDL 8.5 . Out of 5 web application that I have, one of them all of a sudden for some unknown reason(I looked at logs but don't see any clear reason behind it) has its refresh token invalid. After that the web application is continuously trying to get the new token, however it is unable to do that and it is throwing the following error and log is full with this error,
{
"@timestamp": "2019-06-21T07:39:28.418+00:00",
"severity": "INFO",
"service": "***-***-WEB",
"class": "c.sdl.web.client.impl.OAuthTokenProvider",
"message": "Obtaining token using refresh token not successful: Unable to get response from OData service: {\"error\":\"Access Denied: Refresh token is not valid.\"}\n. Trying to obtain new one using client id/secret."
}
Note: No changes have been made neither in CD servers not Discovery Service and other 4 Webapplications are working perfectly pointing to the same CD Servers. Isn't DXA 2.0 capable to renegotiate the connection to get new token so that we can avoid Webapplication restart?
One possible solution to this problem is to restart the WebApplication but I wanted to know if we can avoid such restart whenever this sort of error occurs.