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
The workbench script performs this check but we probably should do it in desktop too so it's easier to display a nice warning to the user. We need to check both that Islandora is up and running and that the credientials provided in the config file are valid.
Idea here is that if Islandora is not responding, Workbench Desktop should not call the python script but should tell the user to investigate.
The text was updated successfully, but these errors were encountered:
I obviously don't understand how try/catch works in Javascript, even though it's supposed to work the same as in other languages. This function returns true when Islandora is not responding:
/** * Returs true if we can connect and log into Islandora, false otherwise. * * Does not currently work. */functionping_islandora(config){varhttp=require('http');http.get('http://localhost:800',function(res){// @todo: Check response code, etc.}).on('error',function(e){returnfalse;});// @todo: Log in to make sure that credentials are valid.console.log("DEBUG: Reached end of ping_islandora function.")returntrue;}
If anyone can point out why this is, I'd love to know.
I'm merging the issue-10 branch into master since I hope all we need to do is get this function to work as intended.
The workbench script performs this check but we probably should do it in desktop too so it's easier to display a nice warning to the user. We need to check both that Islandora is up and running and that the credientials provided in the config file are valid.
Idea here is that if Islandora is not responding, Workbench Desktop should not call the python script but should tell the user to investigate.
The text was updated successfully, but these errors were encountered: