-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
JS Browserdetection fail and redirect #368
Comments
After switch Dependency to 2.51.0 version, the exception is not thrown anymore but still i'm on the "Unsupported" page https://flashscore.com/unsupported/ |
The browser detection is done using this https://www.flashscore.com/x/js/browsercompatibility_4.js code
For the moment i can fix CSS.supports() but because Rhino not (yet) supports the spread syntax (mozilla/rhino#968) this will still fail. The only option you have is to 'patch' the script and replace comment out some parts (see https://htmlunit.sourceforge.io/faq.html#HowToModifyRequestOrResponse). At least it is worth a try |
Have done a fix for CSS.supports() - will make a new snapshot available soon (check twitter for updates) |
I've done it as suggested and try modify the response but got now following exception on it (still on version 2.51.0
|
looks like there is a syntax error in your replaced script - maybe you can replace it by an empty one? |
Hey rbri, i've tried it meanwhile with this but it will still faile:
|
Looks like another error - this time invalid property id (https://www.flashscore.com/res/_fs/build/loader.5714507.js#1) And this js is a huge minimized javascript. At least this uses the not supported syntax
I fear you have to wait until this is fixed in Rhino. |
see #755 |
based on JavaScript execution exeption question on Stackoverflow
HtmlUnit Version: 2.50.0
During getPage call of webpage flashscore.com, i got following exceptions
I've tried with two different classes and problem still occur.
The text was updated successfully, but these errors were encountered: