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
if (response.status>=400) and (response.statusnotin (502, 503)):
348
+
level=logging.ERROR
349
+
self.logger.log(
350
+
level,
351
+
"Querying service endpoint in case we missed some websocket messages. Url: %s Response: '%s' TIP: %s",
352
+
url,
353
+
f"{response.status}: {response.text()}",
354
+
(
355
+
"We are emulating the frontend; a 5XX response is acceptable if the service is not yet ready."
356
+
),
357
+
)
359
358
360
-
ifresponse.status<=400:
361
-
# 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)
362
-
ifself.got_expected_node_progress_types():
363
-
self.logger.warning(
364
-
"⚠️ 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
365
-
self.get_current_progress(),
366
-
)
367
-
returnTrue
368
-
self._last_poll_timestamp=datetime.now(UTC)
359
+
ifresponse.status<=400:
360
+
# 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)
361
+
ifself.got_expected_node_progress_types():
362
+
self.logger.warning(
363
+
"⚠️ 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