-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsdom
gets stuck at traverse::end
#485
Comments
This issue is relevant to #192. Currently we always have to wait for 60s if something is wrong with running the script. |
Do we know if something is wrong with the script or is it just that it takes too long to execute? |
One option could be to split the execution in multiple batches. Not sure how that would work though. |
Yes, below is the error I got when I paste the script to the console in www.facebook.com. So it ended up waiting for the 60s timeout in
|
I think a better solution will be to create another process with just jsdom to inject the JS, maybe one process per JS @sarvaje has been working with child process in https://github.com/sonarwhal/online-service so he can probably help you if we decide to go down this road. |
@molant I tried creating a child process for
|
@qzhou1607 the child process will have to have it's own code that only runs jsdom, navigates to that url and then evaluates the script. We should only have to send the script we want to run and then return the result of the execution if it can be serialized (and find a way if it can't be). @sarvaje can you work with @qzhou1607? This should be somehow similar to what you are doing with the scanner. |
ok |
connector: jsdom
url: www.facebook.com
This happens when
axe
is activated and is back to normal whenaxe
is deactivated. This delay seems to be a extra long time taken in the line below:https://github.com/sonarwhal/sonar/blob/79b8da5d337ef915fe2895d424872bdd21ef4111/src/lib/connectors/jsdom/jsdom.ts#L467
The text was updated successfully, but these errors were encountered: