@@ -178,7 +178,7 @@ def _attempt_reconnect(self, logger: logging.Logger) -> None:
178178 self .ws .expect_event (event , predicate )
179179
180180 except Exception as e : # pylint: disable=broad-except
181- logger .error ("🚨 Failed to reconnect WebSocket: %s" , e )
181+ logger .exception ("🚨 Failed to reconnect WebSocket: %s" , e )
182182
183183 def expect_event (
184184 self ,
@@ -334,23 +334,20 @@ def __call__(self, message: str) -> bool:
334334 for progress in self ._current_progress .values ()
335335 )
336336
337- # TODO: That is NOT what the frontend is doing... AND 401 is not OK it just means traefik responded that we are not authorized...
338- # therefore it stops WAY too early and will generate false negatives!!
339337 _current_timestamp = datetime .now (UTC )
340338 if _current_timestamp - self ._last_poll_timestamp > timedelta (seconds = 5 ):
341339 url = f"https://{ self .node_id } .services.{ self .get_partial_product_url ()} "
342340 response = self .api_request_context .get (url , timeout = 1000 )
343341 self .logger .info (
344342 "Querying the service endpoint from the E2E test. Url: %s Response: %s TIP: %s" ,
345343 url ,
346- response ,
344+ f" { response . status } : { response . text } " ,
347345 (
348346 "We are emulating the frontend; a 500 response is acceptable if the service is not yet ready."
349347 ),
350348 )
351349 if response .status <= 400 :
352350 # NOTE: If the response status is less than 400, it means that the backend is ready (There are some services that respond with a 3XX)
353- # MD: for now I have included 401 - as this also means that backend is ready
354351 if self .got_expected_node_progress_types ():
355352 self .logger .warning (
356353 "⚠️ Progress bar didn't receive 100 percent but service is already running: %s ⚠️" , # https://github.com/ITISFoundation/osparc-simcore/issues/6449
0 commit comments