made rest api call to spark core more robust when the spark core is not online