jina-ai / jina

☁️ Build multimodal AI applications with cloud-native stack
https://docs.jina.ai
Apache License 2.0
20.99k stars 2.22k forks source link

Cannot use JinaHub, network error #4596

Closed luisarandas closed 2 years ago

luisarandas commented 2 years ago

Hello all.

I'm currently getting a bug every time I try to get something from the hub. The first bug is:

SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate 
(_ssl.c:1129)

During handling of the above exception, another exception occurred:

URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate 
(_ssl.c:1129)>

I didn't solve it, trying in a few hours if this persists. Does this have to do with the servers of the company being down? Or is it an installation error on my side? I'm running Jina on my Macbook Pro (Retina, 15-inch, Mid 2015) macOS Monterey v12.2.

Thanks!

JoanFM commented 2 years ago

Hello @luisArandas , could you please expliclty say what command are you trying to run?

luisarandas commented 2 years ago

Hello @JoanFM. Yes absolutely, so that bug on the previous comment is for the common jina hello multimodal, it starts when I start downloading. And I seem to have the same bug when adding hub models such as with the import .add(uses="jinahub://SpacyTextEncoder", name="encoder", install_requirements=True) for example.

⠋ Fetching SpacyTextEncoder from Jina Hub ... JINA@3380[C]:Can not fetch the Url of Hubble from api.jina.ai SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

cristianmtr commented 2 years ago

I couldn't reproduce this issue @luisArandas . Might be some issue with your local certificate storage. Are you on Mac? There is a solution here it seems

luisarandas commented 2 years ago

Thank you @cristianmtr. I solved it by installing the certificate -> https://stackoverflow.com/a/58525755. Downloading now 👍

Screenshot 2022-04-11 at 15 41 52
cristianmtr commented 2 years ago

Awesome @luisArandas . I'll close this issue now. Let us know if you get into other issues