LearningSky.io
  • Home
  • Review
  • AIoT & Cloud & Edge
  • Front-end & Back-end & Programming Language
  • DevOps
  • Tools & Solutions
Subscribe
Tools & Solutions

【 Python 】呼叫 API 出現 SSL: CERTIFICATE_VERIFY_FAILED 錯誤

  • Archer

Archer

Apr 11, 2020 • 1 min read
【 Python 】呼叫 API 出現 SSL: CERTIFICATE_VERIFY_FAILED 錯誤

問題

  • 透過 Python 呼叫 API 時發生 SSL: CERTIFICATE_VERIFY_FAILED 錯誤

    unnamed--1-


解決方案

  • 在 requests 呼叫處加上 verify=False
    • 原始程式

    • 修改後程式


GitHub
  • ArcherHuang @ GitHub
List of blogs
  • https://oranwind.org/author/archer/
  • https://learningsky.io/author/archer/

Sign up for more like this.

Enter your email
Subscribe
【 Container 】將 Vue 在執行階段注入環境變數並透過 Docker Hub 部署到 Azure Container App

【 Container 】將 Vue 在執行階段注入環境變數並透過 Docker Hub 部署到 Azure Container App

內容 學習目標 前置準備作業 專案目錄結構 建立 Vue 建立 .env 建立 nginx.conf 建立 entrypoint.sh 建立 Dockerfile 建立 Docker Image 於本地端執行 Docker Image 測試與驗證一 上傳 Docker Image 到 Docker Hub 建立與部署 Azure Container App 測試與驗證二 修改 env 測試與驗證三 學習目標 如何將 Vue 在執行階段注入環境變數並透過 Docker Hub 部署到 Azure Container App 前置準備作業 已建立 Azure

  • Archer
Archer May 4, 2022 • 5 min read
【 Edge 】於 Raspberry Pi 安裝與設定 Mosquitto MQTT Message Broker 並進行 Publish 與 Subscription 測試

【 Edge 】於 Raspberry Pi 安裝與設定 Mosquitto MQTT Message Broker 並進行 Publish 與 Subscription 測試

內容 學習目標 前置準備作業 安裝 Mosquitto 設定 Mosquitto 透過指令來測試 透過 Python 來測試 學習目標 如何在 Raspberry Pi 安裝與設定 Mosquitto MQTT Message Broker 並進行 Publish 與 Subscription 測試 前置準備作業 準備一台可上網的 Raspberry Pi 安裝 Mosquitto Step 1. 取得遠端更新伺服器的套件檔案清單 請於終端機輸入下方指令 sudo apt-get update Step 2. 安裝 mosquitto 請於終端機輸入下方指令 sudo apt-get install -y mosquitto mosquitto-clients 設定

  • Archer
Archer Apr 28, 2022 • 3 min read
【 Edge 】於 Raspberry Pi OS 設定停止螢幕休眠

【 Edge 】於 Raspberry Pi OS 設定停止螢幕休眠

內容 學習目標 前置準備作業 設定停止螢幕休眠 學習目標 如何在 Raspberry Pi OS 設定停止螢幕休眠 前置準備作業 準備一台可上網的 Raspberry Pi 設定停止螢幕休眠 Step 1. 取得遠端更新伺服器的套件檔案清單 請於終端機輸入下方指令 sudo apt-get update Step 2. 安裝 xscreensaver 請於終端機輸入下方指令 sudo apt-get install -y xscreensaver Step 3. 重開機 請於終端機輸入下方指令sudo reboot Step 4. 開啟設定 Raspberry Pi 圖示 > 偏好設定 > 螢幕保護程式 點選 Display Modes

  • Archer
Archer Apr 28, 2022 • 2 min read
LearningSky.io © 2022
  • Data & privacy
  • Contact
  • Contribute →
Powered by Ghost