Closed hsspratt closed 11 months ago
Thanks @hsspratt. Is it unable to apply at all? But, let me investigate this.
Never starts off with the error with me. It always applies for some jobs successfully before producing the error. Haven't reproduced the exact same error but almost identical today.
The successful prints:
Starting the search for Venture Capital Analyst in London.
Going to job page 0
Starting the application process for this page...
Already applied to the job!
Already applied to the job!
Already applied to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Already applied to the job!
Already applied to the job!
Already applied to the job!
Already applied to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
**_... lots in between_**
Applying to the job....
Failed to apply to job! Please submit a bug report with this link: https://www.linkedin.com/jobs/view/3746269605/
Writing to the failed csv file...
Could not apply to the job!
Traceback (most recent call last):
File "/Users/harold/EasyApplyBot/linkedineasyapply.py", line 195, in apply_jobs
job_el = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title')
File "/Users/harold/EasyApplyBot/venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 416, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["value"]
File "/Users/harold/EasyApplyBot/venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 394, in _execute
return self._parent.execute(command, params)
File "/Users/harold/EasyApplyBot/venv/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 344, in execute
self.error_handler.check_response(response)
File "/Users/harold/EasyApplyBot/venv/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: disconnected: not connected to DevTools
(failed to check if window was closed: disconnected: not connected to DevTools)
(Session info: chrome=119.0.6045.105)
Stacktrace:
0 chromedriver 0x0000000107166d28 chromedriver + 4795688
1 chromedriver 0x000000010715e2b3 chromedriver + 4760243
2 chromedriver 0x0000000106d3788d chromedriver + 407693
3 chromedriver 0x0000000106d1c67e chromedriver + 296574
4 chromedriver 0x0000000106d1c573 chromedriver + 296307
5 chromedriver 0x0000000106d3a052 chromedriver + 417874
6 chromedriver 0x0000000106dc9117 chromedriver + 1003799
7 chromedriver 0x0000000106dada73 chromedriver + 891507
8 chromedriver 0x0000000106d78143 chromedriver + 672067
9 chromedriver 0x0000000106d7931e chromedriver + 676638
10 chromedriver 0x0000000107127795 chromedriver + 4536213
11 chromedriver 0x000000010712c853 chromedriver + 4556883
12 chromedriver 0x000000010710d001 chromedriver + 4427777
13 chromedriver 0x000000010712d59d chromedriver + 4560285
14 chromedriver 0x00000001070fe48c chromedriver + 4367500
15 chromedriver 0x000000010714d0e8 chromedriver + 4690152
16 chromedriver 0x000000010714d29e chromedriver + 4690590
17 chromedriver 0x000000010715deee chromedriver + 4759278
18 libsystem_pthread.dylib 0x00007ff810ed3202 _pthread_start + 99
19 libsystem_pthread.dylib 0x00007ff810ecebab thread_start + 15
Hi @hsspratt ,
Please use code tags (those < > in editor window) to keep the thread tidy (I have edited your posts to do the same). About your issue:
I am unable to reproduce the error even after setting-up the bot from scratch.
Based on below, I suspect your Internet to be the issue for not loading the webpage (or element in this case) before the bot attempts a search for it.
job_el = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title')
.../venv/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 416, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["value"]
... and so on
Although no one has reported the error, I am making a small change of adding a 2-seconds delay to allow loading of all elements so lag-related errors could be prevented. Downside, further slows down the bot.
I will be updating code on Github after 2-second delay testing goes without issues.
My run so far:
Starting the search for finance manager in Australia and New Zealand.
Going to job page 0
Starting the application process for this page...
Job contains blacklisted keyword or company or poster name!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Already applied to the job!
Applying to the job....
Failed to upload resume or cover letter!
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Failed to upload resume or cover letter!
Done applying to the job!
Applying to the job....
Starting the search for treasury manager in Canada.
Going to job page 0
Starting the application process for this page...
Applying to the job....
Done applying to the job!
Applying to the job....
Done applying to the job!
Job contains blacklisted keyword or company or poster name!
@hsspratt I have pushed changes, please download new linkedineasyapply.py
and main.py
to replcae your current local versions.
Hope this helps. Closing.
I have been receiving this message all after the following error message was produced multiple times before printing "Failed to apply to job! Please submit a bug report with this link".
Here are some of the ones from the last round:
No error is produced for these specific jobs although when it changed to another page (page 3) the following error was produced:
After which it failed to apply successfully for a job so assuming it is related.