<?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 Re: Capture Python API Errors in Jupyter Notebook Cell Output in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/capture-python-api-errors-in-jupyter-notebook-cell/m-p/1396570#M9767</link>
    <description>&lt;P&gt;I don't know about a way to do it within the API, but you could just use &lt;STRONG&gt;requests &lt;/STRONG&gt;to ping the service endpoints and parse the response.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 14:56:22 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-03-15T14:56:22Z</dc:date>
    <item>
      <title>Capture Python API Errors in Jupyter Notebook Cell Output</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/capture-python-api-errors-in-jupyter-notebook-cell/m-p/1396544#M9766</link>
      <description>&lt;P&gt;Hi Geonet community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the Python API in Jupyter Notebook to test the availabilit of ArcGIS Server feature services. When a service is inaccessible an error message in pink is output from the notebook cell, but no exception is raised.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inlineerror.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98157iF0BC37E7C5449BA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="inlineerror.png" alt="inlineerror.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to capture these issues to use elsewhere, is there a way to capture either the error outputs from the cell, or have the API raise an exception?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/capture-python-api-errors-in-jupyter-notebook-cell/m-p/1396544#M9766</guid>
      <dc:creator>AndrewKesterton</dc:creator>
      <dc:date>2024-03-15T14:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Python API Errors in Jupyter Notebook Cell Output</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/capture-python-api-errors-in-jupyter-notebook-cell/m-p/1396570#M9767</link>
      <description>&lt;P&gt;I don't know about a way to do it within the API, but you could just use &lt;STRONG&gt;requests &lt;/STRONG&gt;to ping the service endpoints and parse the response.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/capture-python-api-errors-in-jupyter-notebook-cell/m-p/1396570#M9767</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-15T14:56:22Z</dc:date>
    </item>
  </channel>
</rss>

