Getting error on login with Google for testing application.
The other applications are fine.
INFO: 10.42.3.101:50334 - “GET /v1/auth/auth?code=S6r91jlTaOB_ivD1KB_ZPnmLSchTbuCfl8pJILa3eDufy&state=imahjIFhrOSRBFyiVPHAl24moYGVlH HTTP/1.1” 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py”, line 409, in run_asgi
result = await app( # type: ignore[func-returns-value]
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py”, line 60, in call
return await self.app(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/fastapi/applications.py”, line 290, in call
await super().call(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/applications.py”, line 122, in call
await self.middleware_stack(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 184, in call
raise exc
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 162, in call
await self.app(scope, receive, _send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/middleware/cors.py”, line 83, in call
await self.app(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/middleware/sessions.py”, line 86, in call
await self.app(scope, receive, send_wrapper)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 79, in call
raise exc
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 68, in call
await self.app(scope, receive, sender)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py”, line 20, in call
raise e
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py”, line 17, in call
await self.app(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/routing.py”, line 718, in call
await route.handle(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/routing.py”, line 276, in handle
await self.app(scope, receive, send)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/starlette/routing.py”, line 66, in app
response = await func(request)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/fastapi/routing.py”, line 241, in app
raw_response = await run_endpoint_function(
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/fastapi/routing.py”, line 167, in run_endpoint_function
return await dependant.call(**values)
File “/app/lamini/infra/lamini_infra/powerml_api/fastapi/routers/auth_router.py”, line 66, in authorize_oidc
token = await client.authorize_access_token(request)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/authlib/integrations/starlette_client/apps.py”, line 88, in authorize_access_token
token = await self.fetch_access_token(**params, **kwargs)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/authlib/integrations/base_client/async_app.py”, line 133, in fetch_access_token
token = await client.fetch_token(token_endpoint, **params)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/authlib/integrations/httpx_client/oauth2_client.py”, line 176, in _fetch_token
return self.parse_response_token(resp)
File “/opt/conda/envs/py_3.10/lib/python3.10/site-packages/authlib/oauth2/client.py”, line 419, in parse_response_token
raise self.oauth_error_class(
authlib.integrations.base_client.errors.OAuthError: access_denied: Unauthorized