crewAI-tools icon indicating copy to clipboard operation
crewAI-tools copied to clipboard

ERROR: [youtube:tab] : Unable to download API page: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007) (caused by CertificateVerifyError('[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

Open pradeepdev-1995 opened this issue 1 year ago • 2 comments

I am using YoutubeChannelSearchTool for a youtube video transcript task. But when I kickoff my crew object, I am getting the following error

ERROR: [youtube:tab] <youtube channel name>: Unable to download API page: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007) (caused by CertificateVerifyError('[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

I am using the latest version of yt-dlp(yt-dlp==2024.7.9)

pradeepdev-1995 avatar Jul 16 '24 15:07 pradeepdev-1995

I added these 2 lines in crew.py file to supress the error temporarily.

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

anirudhmaddy avatar Jul 19 '24 10:07 anirudhmaddy

which version of ssl you are using? for me getting SSL has no attribute _create_unverified_context

pradeepdev-1995 avatar Jul 19 '24 13:07 pradeepdev-1995