nolanzandi commited on
Commit
205623a
·
verified ·
1 Parent(s): a4d0f94

update certificates (#46)

Browse files

- update certificates (6d05f71d81430410c46772c38f616e6f0ae55f44)

data_sources/connect_graphql.py CHANGED
@@ -1,4 +1,5 @@
1
  import requests
 
2
  import os
3
  import json
4
  from utils import TEMP_DIR
@@ -102,7 +103,8 @@ def connect_graphql(graphql_url, api_token, graphql_token_header, session_hash):
102
  headers = {"Content-Type": "application/json"}
103
  if graphql_token_header and api_token:
104
  headers[graphql_token_header] = api_token
105
- response = requests.post(graphql_url, headers=headers, json={"query": query})
 
106
  response.raise_for_status()
107
 
108
  introspection_result = response.json()
@@ -119,7 +121,8 @@ def connect_graphql(graphql_url, api_token, graphql_token_header, session_hash):
119
  }
120
  }
121
  """
122
- types_response = requests.post(graphql_url, headers=headers, json={"query": type_names_query})
 
123
 
124
  types_response_results =types_response.json()
125
 
 
1
  import requests
2
+ import certifi
3
  import os
4
  import json
5
  from utils import TEMP_DIR
 
103
  headers = {"Content-Type": "application/json"}
104
  if graphql_token_header and api_token:
105
  headers[graphql_token_header] = api_token
106
+ response = requests.post(graphql_url, headers=headers, json={"query": query},
107
+ verify=certifi.where())
108
  response.raise_for_status()
109
 
110
  introspection_result = response.json()
 
121
  }
122
  }
123
  """
124
+ types_response = requests.post(graphql_url, headers=headers, json={"query": type_names_query},
125
+ verify=certifi.where())
126
 
127
  types_response_results =types_response.json()
128
 
requirements.txt CHANGED
@@ -12,3 +12,4 @@ pymongoarrow
12
  pymongo_schema
13
  pandasql
14
  pluck-graphql
 
 
12
  pymongo_schema
13
  pandasql
14
  pluck-graphql
15
+ certifi