Unstructured API Loader Is stuck on SSL Error for self-hosted API. No option for verify_ssl=False to avoid this. #21488
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Ɑ: doc loader
Related to document loader module (not documentation)
Checked other resources
Example Code
This following code works to reach out to my self-hosted unstructured API and turns a file in Unsturctured Json:
def test_file_conversation_langchain():
"""Test file conversion using the lang chain wrapper
"""
# seems to fail SSL
health_check_url = UNSTRUCTURED_API_URL.replace("general/v0/general", "healthcheck")
check = requests.get(health_check_url, verify=False)
print(check)
loader = UnstructuredAPIFileLoader(api_key=UNSTRUCTURED_API_KEY, url=UNSTRUCTURED_API_URL, file_path=FILE_NAME)
docs = loader.load()
assert len(docs) > 0
The text was updated successfully, but these errors were encountered: