"_cookie_temp_file" error after frequent calling of phantomJS

15 views
Skip to first unread message

lizhao.in...@gmail.com

unread,
Nov 12, 2017, 10:16:06 PM11/12/17
to phantomjs
File "/home/zhaoli/.local/lib/python2.7/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 76, in quit self.service.stop()
File "/home/zhaoli/.local/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 149, in stop self.send_remote_shutdown_command()
File "/home/zhaoli/.local/lib/python2.7/site-packages/selenium/webdriver/phantomjs/service.py", line 67, in send_remote_shutdown_command
os
.close(self._cookie_temp_file_handle) OSError: [Errno 9] Bad file descriptor


Hi, 

I call the PhantomJS at every httprequest, they won't cause this problem all the time. They can work well at most of the time. Even it occurs this error, it will still work after a refresh.

Thanks.
Reply all
Reply to author
Forward
0 new messages