The expectation is that the Collections badge would list the number of collection the user has, rather than the error message.
The logs fail with an 'invalid_client' error:
2025-01-08 20:48:56 raise self.oauth_error_class( 2025-01-08 20:48:56 authlib.integrations.base_client.errors.OAuthError: invalid_client: 2025-01-08 20:48:56 ERROR:gn2.wqflask:Error loading number of collections 2025-01-08 20:48:56 Traceback (most recent call last): 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/gn2/wqflask/__init__.py", line 55, in numcoll 2025-01-08 20:48:56 return num_collections() 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/gn2/wqflask/oauth2/collect ions.py", line 13, in num_collections 2025-01-08 20:48:56 all_collections = all_collections + oauth2_get( 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/gn2/wqflask/oauth2/client. py", line 168, in oauth2_get 2025-01-08 20:48:56 resp = oauth2_client().get( 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/requests/sessions.py", lin e 600, in get 2025-01-08 20:48:56 return self.request("GET", url, **kwargs) 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/integrations/reque sts_client/oauth2_session.py", line 109, in request 2025-01-08 20:48:56 return super(OAuth2Session, self).request( 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/requests/sessions.py", lin e 573, in request 2025-01-08 20:48:56 prep = self.prepare_request(req) 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/requests/sessions.py", lin e 484, in prepare_request 2025-01-08 20:48:56 p.prepare( 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/requests/models.py", line 372, in prepare 2025-01-08 20:48:56 self.prepare_auth(auth, url) 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/requests/models.py", line 603, in prepare_auth 2025-01-08 20:48:56 r = auth(self) 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/integrations/reque sts_client/oauth2_session.py", line 24, in __call__ 2025-01-08 20:48:56 self.ensure_active_token() 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/integrations/reque sts_client/oauth2_session.py", line 20, in ensure_active_token 2025-01-08 20:48:56 if self.client and not self.client.ensure_active_token(self.token): 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/oauth2/client.py", line 262, in ensure_active_token 2025-01-08 20:48:56 self.refresh_token(url, refresh_token=refresh_token) 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/oauth2/client.py", line 252, in refresh_token 2025-01-08 20:48:56 return self._refresh_token( 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/oauth2/client.py", line 373, in _refresh_token 2025-01-08 20:48:56 token = self.parse_response_token(resp) 2025-01-08 20:48:56 File "/gnu/store/3n1cl5cxal3qk7p9q363qgm2ag45a177-profile/lib/python3.10/site-packages/authlib/oauth2/client.py", line 340, in parse_response_token 2025-01-08 20:48:56 raise self.oauth_error_class( 2025-01-08 20:48:56 authlib.integrations.base_client.errors.OAuthError: invalid_client:
The following commits were done as part of the troubleshooting: