Closed saiello closed 2 years ago
I bumped into this problem installing hawtio-online through its operator, but I was able to reproduce with hawtio-oauth and CRC.
To reproduce
Start crc
Increase the accessTokenMaxAgeSeconds
apiVersion: config.openshift.io/v1 kind: OAuth metadata: name: cluster spec: identityProviders: - htpasswd: fileData: name: htpass-secret mappingMethod: claim name: developer type: HTPasswd tokenConfig: accessTokenMaxAgeSeconds: 63072000
Configure Hawtio-oauth example to use CRC
Start Hawtio-oauth
KUBERNETES_MASTER=`oc whoami --show-server` yarn start --sourcemap
Result
After a successful login, keepalive starts firing request against openshift user profile api and eventually the browser page become unresponsive.
GET https://api.crc.testing:6443/apis/user.openshift.io/v1/users/~ net::ERR_INSUFFICIENT_RESOURCES
Root Cause
The root cause seems to be the $interval of angularJS with very high interval value.
In this case keepalive has been started with an interval value of ~15768000 ( 63072000 / 4 ).
~15768000
I bumped into this problem installing hawtio-online through its operator, but I was able to reproduce with hawtio-oauth and CRC.
To reproduce
Start crc
Increase the accessTokenMaxAgeSeconds
Configure Hawtio-oauth example to use CRC
Start Hawtio-oauth
Result
After a successful login, keepalive starts firing request against openshift user profile api and eventually the browser page become unresponsive.
Root Cause
The root cause seems to be the $interval of angularJS with very high interval value.
In this case keepalive has been started with an interval value of
~15768000
( 63072000 / 4 ).