@@ -1328,8 +1328,8 @@ qx.Class.define("osparc.data.model.Node", {
13281328 } ,
13291329
13301330 __waitForServiceReady : async function ( srvUrl ) {
1331+ this . getStatus ( ) . setInteractive ( "connecting" ) ;
13311332 const retry = ( ) => {
1332- this . getStatus ( ) . setInteractive ( "connecting" ) ;
13331333 // Check if node is still there
13341334 if ( this . getWorkbench ( ) . getNode ( this . getNodeId ( ) ) === null ) {
13351335 return ;
@@ -1340,7 +1340,13 @@ qx.Class.define("osparc.data.model.Node", {
13401340
13411341 // ping for some time until it is really reachable
13421342 try {
1343+ if ( osparc . utils . Utils . isDevelopmentPlatform ( ) ) {
1344+ console . log ( "Connecting: about to fetch " , srvUrl ) ;
1345+ }
13431346 const response = await fetch ( srvUrl ) ;
1347+ if ( osparc . utils . Utils . isDevelopmentPlatform ( ) ) {
1348+ console . log ( "Connecting: fetch's response " , response ) ;
1349+ }
13441350 if ( response . ok || response . status === 302 ) {
13451351 // ok = status in the range 200-299
13461352 // some services might respond with a 302 which is also fine
@@ -1350,11 +1356,11 @@ qx.Class.define("osparc.data.model.Node", {
13501356 // we will skip those steps and directly switch its iframe
13511357 this . __serviceReadyIn ( srvUrl ) ;
13521358 } else {
1353- console . log ( `${ srvUrl } is not reachable. Status: ${ response . status } ` ) ;
1359+ console . log ( `Connecting: ${ srvUrl } is not reachable. Status: ${ response . status } ` ) ;
13541360 retry ( ) ;
13551361 }
13561362 } catch ( error ) {
1357- console . error ( `Error while checking ${ srvUrl } :` , error ) ;
1363+ console . error ( `Connecting: Error while checking ${ srvUrl } :` , error ) ;
13581364 retry ( ) ;
13591365 }
13601366 } ,
0 commit comments