The info I have is
So long as you have URLs set in the experiment options, it may be possible to change them using the following command: PsychoJS.setRedirectUrls(myCompletedURL, myCancelledURL)
CompletedURL / IncompleteURL - #23 by jon
Have you set URLs in the experiment options? What was the error you got the second time?