From 285ac3bbf77c93f8f38d77ddafa2e9d80af2f1dd Mon Sep 17 00:00:00 2001 From: Martin Simonovsky Date: Tue, 29 Jul 2025 15:20:18 +0000 Subject: [PATCH] wait until request is correctly parsed Signed-off-by: Martin Simonovsky --- flytekit/clients/auth/auth_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flytekit/clients/auth/auth_client.py b/flytekit/clients/auth/auth_client.py index 5592621ed7..e46475e9b7 100644 --- a/flytekit/clients/auth/auth_client.py +++ b/flytekit/clients/auth/auth_client.py @@ -367,7 +367,8 @@ def get_creds_from_remote(self) -> Credentials: self._request_authorization_code() - server.handle_request(q) + while q.empty(): + server.handle_request(q) server.server_close() # Send the call to request the authorization code in the background