Failed to extract text from PPTX: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)> #6468

Closed
opened 2026-02-21 18:15:52 -05:00 by yindo · 1 comment
Owner

Originally created by @congziqi on GitHub (Oct 31, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.10.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Upload a pptx formatted file or use a link to a pptx file, the document extractor encounters an error. But other file types do not have this error.

Error Info:
Failed to extract text from PPTX: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

image

✔️ Expected Behavior

no error

Actual Behavior

No response

Originally created by @congziqi on GitHub (Oct 31, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.10.2 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce Upload a pptx formatted file or use a link to a pptx file, the document extractor encounters an error. But other file types do not have this error. Error Info: Failed to extract text from PPTX: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)> ![image](https://github.com/user-attachments/assets/60c6b962-00ef-4e6a-9ac7-77c345e82a24) ### ✔️ Expected Behavior no error ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:15:52 -05:00
yindo closed this issue 2026-02-21 18:15:52 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 31, 2024):

The error you're encountering, [SSL: CERTIFICATE_VERIFY_FAILED], indicates that the SSL certificate verification failed because the local issuer certificate could not be found. This is a common issue when the system does not have the necessary root certificates installed or configured.

Here are a few steps you can take to resolve this issue:

  1. Install Root Certificates: Ensure that your system has the necessary root certificates installed. On many systems, you can update the certificates using a package manager. For example, on Ubuntu, you can run:

    sudo apt-get update
    sudo apt-get install ca-certificates
    
  2. Configure SSL Verification: If you're in a development or testing environment and need to bypass SSL verification temporarily, you can configure the HTTP client to skip SSL verification. However, this is not recommended for production environments due to security risks.

  3. Check Python SSL Configuration: If you're using Python, ensure that the SSL module is correctly configured. Sometimes, updating Python or the certifi package can resolve these issues:

    pip install --upgrade certifi
    
  4. Verify Server Certificate: Ensure that the server you're connecting to has a valid SSL certificate. You can use tools like openssl to check the certificate chain:

    openssl s_client -connect yourserver.com:443
    
  5. Docker Configuration: If you're running Dify in a Docker environment, make sure the Docker container has access to the host's CA certificates. You might need to mount the host's certificate directory into the container.

These steps should help you resolve the SSL certificate verification issue. If the problem persists, you might need to investigate further into the specific environment or network configuration.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 31, 2024): <!-- Answer --> The error you're encountering, `[SSL: CERTIFICATE_VERIFY_FAILED]`, indicates that the SSL certificate verification failed because the local issuer certificate could not be found. This is a common issue when the system does not have the necessary root certificates installed or configured. Here are a few steps you can take to resolve this issue: 1. **Install Root Certificates**: Ensure that your system has the necessary root certificates installed. On many systems, you can update the certificates using a package manager. For example, on Ubuntu, you can run: ```bash sudo apt-get update sudo apt-get install ca-certificates ``` 2. **Configure SSL Verification**: If you're in a development or testing environment and need to bypass SSL verification temporarily, you can configure the HTTP client to skip SSL verification. However, this is not recommended for production environments due to security risks. 3. **Check Python SSL Configuration**: If you're using Python, ensure that the SSL module is correctly configured. Sometimes, updating Python or the `certifi` package can resolve these issues: ```bash pip install --upgrade certifi ``` 4. **Verify Server Certificate**: Ensure that the server you're connecting to has a valid SSL certificate. You can use tools like `openssl` to check the certificate chain: ```bash openssl s_client -connect yourserver.com:443 ``` 5. **Docker Configuration**: If you're running Dify in a Docker environment, make sure the Docker container has access to the host's CA certificates. You might need to mount the host's certificate directory into the container. These steps should help you resolve the SSL certificate verification issue. If the problem persists, you might need to investigate further into the specific environment or network configuration. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6468