diff --git a/chart/f7t4jhub/files/jupyterhub-config.py b/chart/f7t4jhub/files/jupyterhub-config.py index 82d0cf9..443751e 100644 --- a/chart/f7t4jhub/files/jupyterhub-config.py +++ b/chart/f7t4jhub/files/jupyterhub-config.py @@ -80,7 +80,10 @@ async def refresh_user(self, user, handler=None): } response = requests.post(self.token_url, data=params, headers=headers) - self.log.debug(f"[refresh_user] Request to KeyCloak: {response} {response.json()}") + if response.status_code != 200: + self.log.debug(f"[refresh_user] Request to KeyCloak: {response.json()}") + return False + token_response = response.json() auth_state['token_response'].update(token_response)