<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1/seg in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92472#M1953</link>
    <description>&lt;P&gt;while connecting to an api from databricks notebook with the bearer token I am getting the below error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1/segments?page=1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)'))).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me out if any workaround can be done.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 16:40:38 GMT</pubDate>
    <dc:creator>SunilSamal</dc:creator>
    <dc:date>2024-10-01T16:40:38Z</dc:date>
    <item>
      <title>HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1/seg</title>
      <link>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92472#M1953</link>
      <description>&lt;P&gt;while connecting to an api from databricks notebook with the bearer token I am getting the below error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1/segments?page=1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)'))).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me out if any workaround can be done.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:40:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92472#M1953</guid>
      <dc:creator>SunilSamal</dc:creator>
      <dc:date>2024-10-01T16:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1</title>
      <link>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92616#M1966</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Kindly help me on the above request. Please let me know if anyone has faced any such issues earlier. the API has installed an SSL certificate but after this I am not able to connect to the API and getting the above error. How can I connect to the API from Databricks notebook.&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 05:33:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92616#M1966</guid>
      <dc:creator>SunilSamal</dc:creator>
      <dc:date>2024-10-03T05:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1</title>
      <link>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92619#M1967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124111"&gt;@SunilSamal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you are encountering, &lt;EM&gt;SSLCertVerificationError&lt;/EM&gt;, indicates that the SSL certificate verification failed because the local issuer certificate could not be obtained. This is a common issue when the SSL certificate chain is incomplete or the local system does not trust the certificate authority.&lt;/P&gt;
&lt;P&gt;Here are a few steps you can take to resolve this issue:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Verify SSL Certificates:&lt;/STRONG&gt; Ensure that the SSL certificates on the server (sandvik.peakon.com) are correctly configured and the certificate chain is complete.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Update CA Certificates&lt;/STRONG&gt;: Make sure your local system has the latest CA certificates. On some systems, you can update CA certificates using a package manager (e.g., apt-get update ca-certificates on Debian-based systems).&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Disable SSL Verification (Not Recommended for Production):&lt;/STRONG&gt; If you are in a development environment and need a quick workaround, you can disable SSL verification. However, this is not recommended for production environments due to security risks. You can do this by setting the verify parameter to False in your request:&lt;/LI&gt;
&lt;/OL&gt;
&lt;LI-CODE lang="python"&gt;import requests

url = "https://sandvik.peakon.com/api/v1/segments?page=1"
headers = {"Authorization": "Bearer YOUR_BEARER_TOKEN"}

response = requests.get(url, headers=headers, verify=False)
print(response.json())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;4.Specify a Custom CA Bundle:&lt;/STRONG&gt; If you have a custom CA bundle, you can specify it in your request:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import requests

url = "https://sandvik.peakon.com/api/v1/segments?page=1"
headers = {"Authorization": "Bearer YOUR_BEARER_TOKEN"}
ca_bundle_path = "/path/to/your/ca-bundle.crt"

response = requests.get(url, headers=headers, verify=ca_bundle_path)
print(response.json())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Check Databricks Configuration:&lt;/STRONG&gt;&amp;nbsp;If you are using Databricks, ensure that your cluster and environment are configured correctly to trust the SSL certificates. You might need to import the necessary certificates into the Databricks environment.&lt;/P&gt;
&lt;P&gt;If the issue persists, you may want to consult with your network or security team to ensure that the SSL certificates are correctly configured and trusted by your system.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:27:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92619#M1967</guid>
      <dc:creator>saikumar246</dc:creator>
      <dc:date>2024-10-03T06:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPSConnectionPool(host='sandvik.peakon.com', port=443): Max retries exceeded with url: /api/v1</title>
      <link>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92623#M1968</link>
      <description>&lt;P&gt;Thanks Sai for the response.&lt;/P&gt;&lt;P&gt;I tried with all the above options. But still getting the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:49:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/httpsconnectionpool-host-sandvik-peakon-com-port-443-max-retries/m-p/92623#M1968</guid>
      <dc:creator>SunilSamal</dc:creator>
      <dc:date>2024-10-03T06:49:28Z</dc:date>
    </item>
  </channel>
</rss>

