srbhr / Resume-Matcher

Resume Matcher is an open source, free tool to improve your resume. It works by using language models to compare and rank resumes with job descriptions.
https://www.resumematcher.fyi/
Apache License 2.0
4.72k stars 1.86k forks source link

ResponseHandlingException: [Errno 11001] getaddrinfo failed #130

Closed XuehangXu0907 closed 10 months ago

XuehangXu0907 commented 10 months ago

Issue Title

ResponseHandlingException: [Errno 11001] getaddrinfo failed

Type

Description

ResponseHandlingException: [Errno 11001] getaddrinfo failed

Expected Behavior

haven't seen a good response

Current Behavior

ResponseHandlingException: [Errno 11001] getaddrinfo failed

Steps to Reproduce

  1. i just follow the guide it occur on step 8

Screenshots / Code Snippets (if applicable)

Traceback: File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.dict) File "D:\PROJECTS\PY\Resume\Resume-Matcher\streamlit_app.py", line 282, in result = get_similarity_score(resume_string, jd_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\scripts\similarity\get_similarity_score.py", line 153, in get_similarity_score qdrant_search = QdrantSearch([resume_string], job_description_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\scripts\similarity\get_similarity_score.py", line 92, in init self.qdrant.recreate_collection( File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\qdrant_client.py", line 1609, in recreate_collection self.delete_collection(collection_name) File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\qdrant_client.py", line 1543, in delete_collection result: Optional[bool] = self.http.collections_api.delete_collection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api\collections_api.py", line 788, in delete_collection return self._build_for_delete_collection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api\collections_api.py", line 268, in _build_for_delete_collection return self.api_client.request( ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\apiclient.py", line 68, in request return self.send(request, type) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 85, in send response = self.middleware(request, self.send_inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 188, in call return call_next(request) ^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 97, in send_inner raise ResponseHandlingException(e)

Environment

Possible Solution (if you have any in mind)

maybe fix the getadrinfo ?

Additional Information

srbhr commented 10 months ago

Can you try updating the qdrant_client ?

pip install -U qdrant_client

On Thu, Aug 31, 2023, 11:38 AM Xuehang Xu @.***> wrote:

Issue Title

ResponseHandlingException: [Errno 11001] getaddrinfo failed Type

  • Big
  • Feature Request
  • Info
  • [ x ] Bug
  • Documentation
  • Other (please specify):

Description

ResponseHandlingException: [Errno 11001] getaddrinfo failed Expected Behavior

haven't seen a good response Current Behavior

ResponseHandlingException: [Errno 11001] getaddrinfo failed Steps to Reproduce

  1. i just follow the guide it occur on step 8

Screenshots / Code Snippets (if applicable)

Traceback: File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.dict) File "D:\PROJECTS\PY\Resume\Resume-Matcher\streamlit_app.py", line 282, in result = get_similarity_score(resume_string, jd_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\scripts\similarity\get_similarity_score.py", line 153, in get_similarity_score qdrant_search = QdrantSearch([resume_string], job_description_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\scripts\similarity\get_similarity_score.py", line 92, in init self.qdrant.recreate_collection( File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\qdrant_client.py", line 1609, in recreate_collection self.delete_collection(collection_name) File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\qdrant_client.py", line 1543, in delete_collection result: Optional[bool] = self.http.collections_api.delete_collection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api\collections_api.py", line 788, in delete_collection return self._build_for_delete_collection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api\collections_api.py", line 268, in

build_for_delete_collection return self.api_client.request( ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 68, in request return self.send(request, type) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 85, in send response = self.middleware(request, self.send_inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 188, in call return call_next(request) ^^^^^^^^^^^^^^^^^^ File "D:\PROJECTS\PY\Resume\Resume-Matcher\env\Lib\site-packages\qdrant_client\http\api_client.py", line 97, in send_inner raise ResponseHandlingException(e) Environment

  • Operating System: Windows
  • Browser (if applicable): Chrome
  • Version/Commit ID (if applicable):

Possible Solution (if you have any in mind)

maybe fix the getadrinfo ? Additional Information

— Reply to this email directly, view it on GitHub https://github.com/srbhr/Resume-Matcher/issues/130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7TBIHKY5FQ7CBHGCSS7FLXYAS6DANCNFSM6AAAAAA4FREHJM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

XuehangXu0907 commented 10 months ago

I just updated it, the problem is still there.

SubramanyamChalla24 commented 10 months ago

Hi @XuehangXu0907 , can you share the complete stack trace for the error?

mediheb-codes commented 10 months ago

image

ojhakumargaurav commented 10 months ago

if my knowledge is correct, Can you please check the qdrant url in config file? it might be incorrect. This error comes for an incorrect hostname during a socket connection in python too.

SubramanyamChalla24 commented 10 months ago

Hey, I have updated the readme for the error, you need to open the cluster once and enter your api key for the first time and then you can use it as intended. Also , please make sure you have your api keys in the config.yml file .

drewbitt commented 10 months ago

I have the exact same stacktrace, although a different error message, and this is on Linux in Docker:

ResponseHandlingException: [Errno -2] Name or service not known
Traceback:
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
File "/data/Resume-Matcher/streamlit_app.py", line 282, in <module>
    result = get_similarity_score(resume_string, jd_string)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/Resume-Matcher/scripts/similarity/get_similarity_score.py", line 153, in get_similarity_score
    qdrant_search = QdrantSearch([resume_string], job_description_string)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/Resume-Matcher/scripts/similarity/get_similarity_score.py", line 92, in __init__
    self.qdrant.recreate_collection(
File "/usr/local/lib/python3.11/site-packages/qdrant_client/qdrant_client.py", line 1609, in recreate_collection
    self.delete_collection(collection_name)
File "/usr/local/lib/python3.11/site-packages/qdrant_client/qdrant_client.py", line 1543, in delete_collection
    result: Optional[bool] = self.http.collections_api.delete_collection(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api/collections_api.py", line 788, in delete_collection
    return self._build_for_delete_collection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api/collections_api.py", line 268, in _build_for_delete_collection
    return self.api_client.request(
           ^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 68, in request
    return self.send(request, type_)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 85, in send
    response = self.middleware(request, self.send_inner)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 188, in __call__
    return call_next(request)
           ^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/qdrant_client/http/api_client.py", line 97, in send_inner
    raise ResponseHandlingException(e)

Running docker-compose up after setting the yml. It's only the last response that is failing. I've double checked the qdrant url and tried with and without the port.

image

SubramanyamChalla24 commented 10 months ago

Hi @drewbitt , did you try with the api keys and the cluster url in the config.yml file , also as mentioned you may have to open the cluster once to enter your API key there. You can check the commit in the PR I have referenced above

srbhr commented 10 months ago

Thanks @SubramanyamChalla24 I've merged your PR which resolves this issue.