Skip to content
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

[BUG]: Resume upload appears to be failing #50

Open
empireshades opened this issue Jan 31, 2025 · 2 comments
Open

[BUG]: Resume upload appears to be failing #50

empireshades opened this issue Jan 31, 2025 · 2 comments
Assignees
Labels
bug Something isn't working needs more info stale

Comments

@empireshades
Copy link

Describe the bug

After resume generation, the upload is failing

Steps to reproduce

2025-01-31 14:28:07.957 | DEBUG    | ai_hawk.job_applier:_create_and_upload_resume:303 - Resume successfully generated and saved to: generated_cv/CV_1738351661.pdf
2025-01-31 14:28:07.957 | DEBUG    | ai_hawk.job_applier:_create_and_upload_resume:347 - Resume file size: 54932 bytes
2025-01-31 14:28:07.957 | DEBUG    | ai_hawk.job_applier:_create_and_upload_resume:354 - Resume file extension: .pdf
2025-01-31 14:28:07.957 | DEBUG    | ai_hawk.job_applier:_create_and_upload_resume:362 - Uploading resume from path: generated_cv/CV_1738351661.pdf
2025-01-31 14:28:07.985 | ERROR    | ai_hawk.job_applier:_create_and_upload_resume:370 - Resume upload failed: Traceback (most recent call last):
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 363, in _create_and_upload_resume
    element.send_keys(os.path.abspath(file_path_pdf))
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 231, in send_keys
    self._execute(
    ~~~~~~~~~~~~~^
        Command.SEND_KEYS_TO_ELEMENT, {"text": "".join(keys_to_typing(value)), "value": keys_to_typing(value)}
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute
    return self._parent.execute(command, params)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=132.0.6834.159)
Stacktrace:
#0 0x64b69fb4153a <unknown>
#1 0x64b69f63cd5d <unknown>
#2 0x64b69f686e0c <unknown>
#3 0x64b69f6852c9 <unknown>
#4 0x64b69f6b15a2 <unknown>
#5 0x64b69f680758 <unknown>
#6 0x64b69f6b176e <unknown>
#7 0x64b69f6cff84 <unknown>
#8 0x64b69f6b1343 <unknown>
#9 0x64b69f67e78a <unknown>
#10 0x64b69f67f9de <unknown>
#11 0x64b69fb0b2cb <unknown>
#12 0x64b69fb0f242 <unknown>
#13 0x64b69faf87ac <unknown>
#14 0x64b69fb0fdf7 <unknown>
#15 0x64b69fadcb2f <unknown>
#16 0x64b69fb301a8 <unknown>
#17 0x64b69fb30370 <unknown>
#18 0x64b69fb403b6 <unknown>
#19 0x7ed3e689ca94 <unknown>
#20 0x7ed3e6929c3c <unknown>


2025-01-31 14:28:07.987 | ERROR    | ai_hawk.job_applier:fill_up:238 - Failed to fill up form sections: Upload failed: 
Traceback:
Traceback (most recent call last):
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 363, in _create_and_upload_resume
    element.send_keys(os.path.abspath(file_path_pdf))
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 231, in send_keys
    self._execute(
    ~~~~~~~~~~~~~^
        Command.SEND_KEYS_TO_ELEMENT, {"text": "".join(keys_to_typing(value)), "value": keys_to_typing(value)}
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute
    return self._parent.execute(command, params)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=132.0.6834.159)
Stacktrace:
#0 0x64b69fb4153a <unknown>
#1 0x64b69f63cd5d <unknown>
#2 0x64b69f686e0c <unknown>
#3 0x64b69f6852c9 <unknown>
#4 0x64b69f6b15a2 <unknown>
#5 0x64b69f680758 <unknown>
#6 0x64b69f6b176e <unknown>
#7 0x64b69f6cff84 <unknown>
#8 0x64b69f6b1343 <unknown>
#9 0x64b69f67e78a <unknown>
#10 0x64b69f67f9de <unknown>
#11 0x64b69fb0b2cb <unknown>
#12 0x64b69fb0f242 <unknown>
#13 0x64b69faf87ac <unknown>
#14 0x64b69fb0fdf7 <unknown>
#15 0x64b69fadcb2f <unknown>
#16 0x64b69fb301a8 <unknown>
#17 0x64b69fb30370 <unknown>
#18 0x64b69fb403b6 <unknown>
#19 0x7ed3e689ca94 <unknown>
#20 0x7ed3e6929c3c <unknown>

 Traceback (most recent call last):
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 363, in _create_and_upload_resume
    element.send_keys(os.path.abspath(file_path_pdf))
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 231, in send_keys
    self._execute(
    ~~~~~~~~~~~~~^
        Command.SEND_KEYS_TO_ELEMENT, {"text": "".join(keys_to_typing(value)), "value": keys_to_typing(value)}
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute
    return self._parent.execute(command, params)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=132.0.6834.159)
Stacktrace:
#0 0x64b69fb4153a <unknown>
#1 0x64b69f63cd5d <unknown>
#2 0x64b69f686e0c <unknown>
#3 0x64b69f6852c9 <unknown>
#4 0x64b69f6b15a2 <unknown>
#5 0x64b69f680758 <unknown>
#6 0x64b69f6b176e <unknown>
#7 0x64b69f6cff84 <unknown>
#8 0x64b69f6b1343 <unknown>
#9 0x64b69f67e78a <unknown>
#10 0x64b69f67f9de <unknown>
#11 0x64b69fb0b2cb <unknown>
#12 0x64b69fb0f242 <unknown>
#13 0x64b69faf87ac <unknown>
#14 0x64b69fb0fdf7 <unknown>
#15 0x64b69fadcb2f <unknown>
#16 0x64b69fb301a8 <unknown>
#17 0x64b69fb30370 <unknown>
#18 0x64b69fb403b6 <unknown>
#19 0x7ed3e689ca94 <unknown>
#20 0x7ed3e6929c3c <unknown>


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 235, in fill_up
    self._process_form_section(form_section=form_section, job_context=job_context)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 502, in _process_form_section
    self._process_form_element(job_context, form_element)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 513, in _process_form_element
    self._handle_upload_fields(form_element, job_context)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 269, in _handle_upload_fields
    self._create_and_upload_resume(element, job_context)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 371, in _create_and_upload_resume
    raise Exception(f"Upload failed: \nTraceback:\n{tb_str}")
Exception: Upload failed: 
Traceback:
Traceback (most recent call last):
  File "/home/foo/projects/Job_search_assistant/src/ai_hawk/job_applier.py", line 363, in _create_and_upload_resume
    element.send_keys(os.path.abspath(file_path_pdf))
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 231, in send_keys
    self._execute(
    ~~~~~~~~~~~~~^
        Command.SEND_KEYS_TO_ELEMENT, {"text": "".join(keys_to_typing(value)), "value": keys_to_typing(value)}
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute
    return self._parent.execute(command, params)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/foo/.cache/pypoetry/virtualenvs/job-hunt-assistant-RlkJ3SGm-py3.13/lib/python3.13/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=132.0.6834.159)
Stacktrace:
#0 0x64b69fb4153a <unknown>
#1 0x64b69f63cd5d <unknown>
#2 0x64b69f686e0c <unknown>
#3 0x64b69f6852c9 <unknown>
#4 0x64b69f6b15a2 <unknown>
#5 0x64b69f680758 <unknown>
#6 0x64b69f6b176e <unknown>
#7 0x64b69f6cff84 <unknown>
#8 0x64b69f6b1343 <unknown>
#9 0x64b69f67e78a <unknown>
#10 0x64b69f67f9de <unknown>
#11 0x64b69fb0b2cb <unknown>
#12 0x64b69fb0f242 <unknown>
#13 0x64b69faf87ac <unknown>
#14 0x64b69fb0fdf7 <unknown>
#15 0x64b69fadcb2f <unknown>
#16 0x64b69fb301a8 <unknown>
#17 0x64b69fb30370 <unknown>
#18 0x64b69fb403b6 <unknown>
#19 0x7ed3e689ca94 <unknown>
#20 0x7ed3e6929c3c <unknown>



2025-01-31 14:28:07.987 | DEBUG    | utils.browser_utils:handle_security_checks:152 - Checking for CAPTCHA...
2025-01-31 14:28:08.030 | DEBUG    | job_application_saver:save:94 - Saving cover letter to path: 
2025-01-31 14:28:08.030 | DEBUG    | utils.browser_utils:handle_security_checks:152 - Checking for CAPTCHA...
2025-01-31 14:28:08.088 | DEBUG    | ai_hawk.job_applier:_fill_application_form:220 - Application form submitted

Expected behavior

That the resume would be uploaded without error

Actual behavior

The resume upload error'd out.

Branch

main

Branch name

No response

Python version

3.13.1

LLM Used

ChatGPT

Model used

GPT-4o-Mini

Additional context

on Ubuntu 24.04.1 LTS

@surapuramakhil
Copy link
Collaborator

can you add job json - it can be either found in one for the json files - failed.json, skipped.json

for job link

Copy link

This issue has been marked as stale due to inactivity. Please comment or update if this is still relevant.

@github-actions github-actions bot added the stale label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info stale
Projects
Status: Backlog
Development

No branches or pull requests

2 participants