Spaces:
Sleeping
Sleeping
HTTPS works
Browse files
server.py
CHANGED
|
@@ -2,11 +2,7 @@ import copy
|
|
| 2 |
import glob
|
| 3 |
import json
|
| 4 |
import os
|
| 5 |
-
|
| 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
|