You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Querying service endpoint in case we missed some websocket messages. Url: %s Response: '%s' TIP: %s",
406
-
url,
407
-
f"{response.status}: {response.text()}",
408
-
(
409
-
"We are emulating the frontend; a 502/503 response is acceptable if the service is not yet ready."
410
-
),
411
-
)
398
+
response=None
399
+
400
+
try:
401
+
response=self.api_request_context.get(
402
+
url, timeout=_SERVICE_ROOT_POINT_STATUS_TIMEOUT
403
+
)
404
+
except (PlaywrightTimeoutError, TimeoutError):
405
+
self.logger.log(
406
+
logging.ERROR,
407
+
"Timed-out polling service endpoint after %ds",
408
+
_SERVICE_ROOT_POINT_STATUS_TIMEOUT,
409
+
)
410
+
exceptPlaywrightErrorasexc:
411
+
self.logger.log(
412
+
logging.ERROR, "Failed to poll service endpoint: %s", exc
413
+
)
414
+
else:
415
+
self.logger.log(
416
+
(
417
+
logging.ERROR
418
+
if (response.status>=400)
419
+
and (response.statusnotin (502, 503))
420
+
elselogging.DEBUG
421
+
),
422
+
"Querying service endpoint in case we missed some websocket messages. Url: %s Response: '%s' TIP: %s",
423
+
url,
424
+
f"{response.status}: {response.text()}",
425
+
(
426
+
"We are emulating the frontend; a 502/503 response is acceptable if the service is not yet ready."
427
+
),
428
+
)
429
+
430
+
ifresponse.status<=400:
431
+
# NOTE: If the response status is less than 400, it means that the service is ready (There are some services that respond with a 3XX)
432
+
ifself.got_expected_node_progress_types():
433
+
self.logger.warning(
434
+
"⚠️ Progress bar didn't receive 100 percent but service is already running: %s. TIP: we missed some websocket messages! ⚠️", # https://github.com/ITISFoundation/osparc-simcore/issues/6449
435
+
self.get_current_progress(),
436
+
)
437
+
self._service_ready=True
438
+
returnTrue
412
439
413
-
ifresponse.status<=400:
414
-
# NOTE: If the response status is less than 400, it means that the service is ready (There are some services that respond with a 3XX)
415
-
ifself.got_expected_node_progress_types():
416
-
self.logger.warning(
417
-
"⚠️ Progress bar didn't receive 100 percent but service is already running: %s. TIP: we missed some websocket messages! ⚠️", # https://github.com/ITISFoundation/osparc-simcore/issues/6449
0 commit comments