<?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 I cannot curl a URL in a notebook in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/84290#M8236</link>
    <description>&lt;P&gt;I tried to curl the following url in a notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%sh

curl https://staging-api.newrelic.com/graphql -v&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I got the following error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [5 bytes data]
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
} [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
&amp;lt; HTTP/2 418 
&amp;lt; date: Tue, 27 Aug 2024 09:16:43 GMT
&amp;lt; content-type: text/plain
&amp;lt; content-length: 23
&amp;lt; server: cloudflare
&amp;lt; cf-ray: 8b9af6e55b080580-IAD
&amp;lt; 
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
100    23  100    23    0     0    283      0 --:--:-- --:--:-- --:--:--   283
* Connection #0 to host staging-api.newrelic.com left intact
Unauthorized IP address&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this&amp;nbsp;&amp;nbsp;Unauthorized IP address issue?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 09:24:49 GMT</pubDate>
    <dc:creator>jq2024</dc:creator>
    <dc:date>2024-08-27T09:24:49Z</dc:date>
    <item>
      <title>I cannot curl a URL in a notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/84290#M8236</link>
      <description>&lt;P&gt;I tried to curl the following url in a notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%sh

curl https://staging-api.newrelic.com/graphql -v&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I got the following error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [5 bytes data]
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
} [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
&amp;lt; HTTP/2 418 
&amp;lt; date: Tue, 27 Aug 2024 09:16:43 GMT
&amp;lt; content-type: text/plain
&amp;lt; content-length: 23
&amp;lt; server: cloudflare
&amp;lt; cf-ray: 8b9af6e55b080580-IAD
&amp;lt; 
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
100    23  100    23    0     0    283      0 --:--:-- --:--:-- --:--:--   283
* Connection #0 to host staging-api.newrelic.com left intact
Unauthorized IP address&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this&amp;nbsp;&amp;nbsp;Unauthorized IP address issue?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 09:24:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/84290#M8236</guid>
      <dc:creator>jq2024</dc:creator>
      <dc:date>2024-08-27T09:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot curl a URL in a notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/84381#M8237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117615"&gt;@jq2024&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;It looks like this API is behind some kind of firewall. You need to find IP address of your cluster and then add this IP address to whitelist.&lt;BR /&gt;To find your cluster ip addresses, you can use below code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def get_external_ip(x):
    import requests
    import socket

    hostname = socket.gethostname()
    r = requests.get("https://api.ipify.org/")
    public_IP = r.content
    return(f"#{x} From {hostname} with publicIP {public_IP}.")

print('DRIVER:')
rdd1 = get_external_ip(0)
print(rdd1)
print('WORKERS:')   
rdd2 = sc.parallelize(range(1, 4)).map(get_external_ip)
datacoll2 = rdd2.collect()
for row in datacoll2:
    print(row)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Aug 2024 12:22:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/84381#M8237</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-27T12:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: I cannot curl a URL in a notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/88550#M8238</link>
      <description>&lt;P&gt;Thank you for the suggestion. It works&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 15:05:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/i-cannot-curl-a-url-in-a-notebook/m-p/88550#M8238</guid>
      <dc:creator>jq2024</dc:creator>
      <dc:date>2024-09-04T15:05:23Z</dc:date>
    </item>
  </channel>
</rss>

