HildaM / sparkdesk-api

讯飞星火大模型 Python api 接口,快捷方便地在 Python 项目中引入星火模型。支持讯飞星火v3.0 v2.0 v1.0。支持接入”星火知识库“
GNU General Public License v3.0
231 stars 44 forks source link

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007) #7

Closed Ikaros-521 closed 1 year ago

Ikaros-521 commented 1 year ago

Ming,起床修bug了()

发生异常: SSLCertVerificationError
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)
  File "D:\GitHub_pro\AI-Vtuber\utils\gpt_model\sparkdesk.py", line 51, in get_sparkdesk_resp
    return self.sparkAPI.chat(prompt)

image

Ikaros-521 commented 1 year ago

ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}) 多半得加个这

HildaM commented 1 year ago

最近忙面试😭,晚上我看看

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年09月06日 15:25 | | 收件人 | @.> | | 抄送至 | @.***> | | 主题 | Re: [HildaM/sparkdesk-api] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007) (Issue #7) |

ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}) 多半得加个这

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Ikaros-521 commented 1 year ago

最近忙面试😭,晚上我看看 ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年09月06日 15:25 | | 收件人 | @.> | | 抄送至 | @.> | | 主题 | Re: [HildaM/sparkdesk-api] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007) (Issue #7) | ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}) 多半得加个这 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

hhh 面试顺利喵

Ikaros-521 commented 1 year ago

重装解决 websocket-client

pip uninstall websocket-client

pip install websocket-client

Ikaros-521 commented 1 year ago

重装解决 websocket-client`pip uninstall websocket-client pip install websocket-client