Loading edge_cloud_management_api/services/pi_edge_services.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -146,7 +146,7 @@ class PiEdgeAPIClient: """ """ url = f"{self.base_url}/deployedServiceFunction" url = f"{self.base_url}/deployedServiceFunction" try: try: response = requests.post(url, json=data, headers=self._get_headers()) response = requests.post(url, json=data, headers=self._get_headers(), verify=False) response.raise_for_status() response.raise_for_status() except Timeout: except Timeout: return {"error": "The request to the external API timed out. Please try again later."} return {"error": "The request to the external API timed out. Please try again later."} Loading @@ -170,7 +170,7 @@ class PiEdgeAPIClient: url = f"{self.base_url}/node" url = f"{self.base_url}/node" #try: #try: request_headers = self._get_headers() request_headers = self._get_headers() response = requests.get(url, headers=request_headers) response = requests.get(url, headers=request_headers, verify=False) response.raise_for_status() response.raise_for_status() nodes = response.json() nodes = response.json() if not nodes: if not nodes: Loading Loading
edge_cloud_management_api/services/pi_edge_services.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -146,7 +146,7 @@ class PiEdgeAPIClient: """ """ url = f"{self.base_url}/deployedServiceFunction" url = f"{self.base_url}/deployedServiceFunction" try: try: response = requests.post(url, json=data, headers=self._get_headers()) response = requests.post(url, json=data, headers=self._get_headers(), verify=False) response.raise_for_status() response.raise_for_status() except Timeout: except Timeout: return {"error": "The request to the external API timed out. Please try again later."} return {"error": "The request to the external API timed out. Please try again later."} Loading @@ -170,7 +170,7 @@ class PiEdgeAPIClient: url = f"{self.base_url}/node" url = f"{self.base_url}/node" #try: #try: request_headers = self._get_headers() request_headers = self._get_headers() response = requests.get(url, headers=request_headers) response = requests.get(url, headers=request_headers, verify=False) response.raise_for_status() response.raise_for_status() nodes = response.json() nodes = response.json() if not nodes: if not nodes: Loading