Closed XuehangXu0907 closed 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
- 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: @.***>
I just updated it, the problem is still there.
Hi @XuehangXu0907 , can you share the complete stack trace for the error?
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.
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 .
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.
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
Thanks @SubramanyamChalla24 I've merged your PR which resolves this issue.
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
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