Closed jonyt closed 7 years ago
Please see #242. Essentially I'm not sure at this point what can be done to fix it.
I can't be sure without looking into it more but I suspect the user agent issue is caused by iframes dynamically being created. It's difficult to cause those to take on custom user agents and such. It might be possible to address this with JNA/JNI code interacting with C++ itself but not sure yet.
Also note v0.17.6 is the latest version although I don't expect it to fix anything for you in this case.
The main part of your post went over my head at first. Very intertesting it changes from 0.15 to 0.16. That could be useful in fixing this. Thanks!
Well, if it's any help I got the same exception periodically when trying to fetch Facebook pages with jBrowserDriver 0.14.4. However, this didn't prevent fetching the pages. My hunch is that it happened for requests from the FB chat server. In the issue I opened the exception does prevent fetching the page.
When upgrading from
0.15.0
to0.16.0
I get:The code is:
Note that as far as I can tell this only happens when I use a proxy on https://www.facebook.com.
If I turn on debugging I get:
OT: but why the two user agents (Apache-HttpClient/4.5.2 (Java/1.8.0_111) and Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0)?