idolezal commited on
Commit
48c616c
β€’
1 Parent(s): 2bfa18e

HTTPS works

Browse files
Files changed (1) hide show
  1. server.py +1 -5
server.py CHANGED
@@ -2,11 +2,7 @@ import copy
2
  import glob
3
  import json
4
  import os
5
- #os.environ['CURL_CA_BUNDLE'] = ''
6
- #os.environ['REQUESTS_CA_BUNDLE'] = ''
7
- os.environ["REQUESTS_CA_BUNDLE"] = "/etc/ssl/certs/ca-certificates.crt"
8
- print(f"{os.environ.get('CURL_CA_BUNDLE') = }")
9
- print(f"{os.environ.get('REQUESTS_CA_BUNDLE') = }")
10
  import hashlib
11
  import time
12
  import requests
 
2
  import glob
3
  import json
4
  import os
5
+ os.environ["REQUESTS_CA_BUNDLE"] = "/etc/ssl/certs/ca-certificates.crt" # Necessary for `requests`. Without set correct path or empty string it fails during process HTTPS connection with this: [Errno 101] Network is unreachable
 
 
 
 
6
  import hashlib
7
  import time
8
  import requests