<?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: Better error handiling in Morpheus cypher package in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250433#M3607</link>
    <description>&lt;P&gt;Thank you somuch &lt;A class="mention" href="https://community.hpe.com/u/tyler_boyd"&gt;@Tyler_Boyd&lt;/A&gt;  i did see the Pull request, will test and let you know once the code is merged.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 13:19:18 GMT</pubDate>
    <dc:creator>rajmartha</dc:creator>
    <dc:date>2024-10-23T13:19:18Z</dc:date>
    <item>
      <title>Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250419#M3593</link>
      <description>&lt;P&gt;HI All&lt;/P&gt;
&lt;P&gt;i belive morpheus cypher package needs to have a better error handling,.&lt;/P&gt;
&lt;P&gt;we are running the below error almost every day when 5 to 8 jobs run at the same time, which use the morpheus cypher package.  the reason might be most of our jobs, i guess 5 to 8 of them are scheduled at the same time, out of 8 jobs one the job is erroring out with below error.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 44, in &amp;lt;module&amp;gt;
  File "&amp;lt;stdin&amp;gt;", line 25, in main
  File "/var/opt/morpheus/morpheus-local/workspace/py-f85459cd-28c3-4ae8-9dc0-19b435a3b701/lib/python3.11/site-packages/morpheuscypher/__init__.py", line 85, in __init__
    self.set_cypher_endpoint()
  File "/var/opt/morpheus/morpheus-local/workspace/py-f85459cd-28c3-4ae8-9dc0-19b435a3b701/lib/python3.11/site-packages/morpheuscypher/__init__.py", line 103, in set_cypher_endpoint
    if LooseVersion(data['buildVersion']) &amp;lt; LooseVersion('5.3.3'):
                    ~~~~^^^^^^^^^^^^^^^^
KeyError: 'buildVersion'
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;i downloaded the source code for morpheus cypher package&lt;/P&gt;
&lt;P&gt;at line number 103 in def set_cypher_endpoint(self) function,&lt;/P&gt;
&lt;P&gt;current code,&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;    def set_cypher_endpoint(self):
        appliance_url = self.url
        url = appliance_url + "/api/ping"
        headers = {'content-type': 'application/json', 'Authorization': "BEARER %s" % self.token}
        with warnings.catch_warnings():
            warnings.filterwarnings("ignore", category=Warning)
            r = requests.get(url=url, headers=headers, verify=self.ssl_verify)
        data = r.json()
        ***if LooseVersion(data['buildVersion']) &amp;lt; LooseVersion('5.3.3'):***
            self.cypher_endpoint = "/api/cypher/v1/"
        else:
            self.cypher_endpoint = "/api/cypher/"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;i think the code should be&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;def set_cypher_endpoint(self):
    appliance_url = self.url
    url = appliance_url + "/api/ping"
    headers = {'content-type': 'application/json', 'Authorization': "BEARER %s" % self.token}
    
    with warnings.catch_warnings():
        warnings.filterwarnings("ignore", category=Warning)
        r = requests.get(url=url, headers=headers, verify=self.ssl_verify)

    try:
        data = r.json()
        # Check if 'buildVersion' is present
        if 'buildVersion' in data and LooseVersion(data['buildVersion']) &amp;gt;= LooseVersion('5.3.3'):
            self.cypher_endpoint = "/api/cypher/"
        else:
            # Use the fallback endpoint if buildVersion is missing or &amp;lt; 5.3.3
            self.cypher_endpoint = "/api/cypher/v1/"
    except (ValueError, KeyError):
        # Fallback to /api/cypher/v1/ if there's a JSON error or missing 'buildVersion'
        self.cypher_endpoint = "/api/cypher/v1/"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;who ever was developing that package, can you please take a look?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 17:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250419#M3593</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-07T17:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250420#M3594</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt;  any suggestions on how we can get the apitoken from the below code?&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;self.token = morpheus['morpheus']['apiAccessToken']
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:34:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250420#M3594</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-16T13:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250421#M3595</link>
      <description>&lt;P&gt;I believe the var morpheus.executionLeaseToken allows concurrency for cypher access&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 14:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250421#M3595</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2024-10-16T14:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250422#M3596</link>
      <description>&lt;P&gt;That’s a run once token during an execution and immediately expires the next time that variable is called or when the execution completes.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 14:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250422#M3596</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2024-10-16T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250423#M3597</link>
      <description>&lt;P&gt;support ticket i opened for this issue has been closed,since this needs to be addressed here. can someone from Morpheus fix this issue please?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 16:37:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250423#M3597</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-08T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250424#M3598</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt; any update on this?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 16:14:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250424#M3598</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-22T16:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250425#M3599</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/ncelebic"&gt;@ncelebic&lt;/A&gt;  &lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt;  we are keep getting this exceptions, can one of you please help us here?&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Traceback (most recent call last): File "&amp;lt;stdin&amp;gt;", line 44, in &amp;lt;module&amp;gt; File "&amp;lt;stdin&amp;gt;", line 25, in main File "/var/opt/morpheus/morpheus-local/workspace/py-605bc1f9-1e72-4027-9244-d75767499d25/lib/python3.11/site-packages/morpheuscypher/__init__.py", line 122, in get raise Exception(data['msg']) Exception: Unauthorized. You must be authenticated to access this api

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Traceback (most recent call last): File "&amp;lt;stdin&amp;gt;", line 44, in &amp;lt;module&amp;gt; File "&amp;lt;stdin&amp;gt;", line 25, in main File "/var/opt/morpheus/morpheus-local/workspace/py-a2c37c59-4866-48ff-80c7-31270aeced57/lib/python3.11/site-packages/morpheuscypher/__init__.py", line 122, in get raise Exception(data['msg']) Exception: Invalid Vault Token
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Oct 2024 16:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250425#M3599</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-22T16:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250426#M3600</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/tyler_boyd"&gt;@Tyler_Boyd&lt;/A&gt;  did not see the error so far,.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 13:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250426#M3600</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-24T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250427#M3601</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/ncelebic"&gt;@ncelebic&lt;/A&gt;  now i am seeing this error&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 44, in &amp;lt;module&amp;gt;
  File "&amp;lt;stdin&amp;gt;", line 25, in main
  File "/var/opt/morpheus/morpheus-local/workspace/py-772fabfd-e479-46de-9432-6b28a09530d0/lib/python3.11/site-packages/morpheuscypher/__init__.py", line 122, in get
    raise Exception(data['msg'])
Exception: Invalid Vault Token
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2024 18:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250427#M3601</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-14T18:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250428#M3602</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/rmartha"&gt;@rmartha&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;This module is not a core Morpheus product, and that’s why support won’t handle it directly.  The repository is located at &lt;A href="https://github.com/tryfan/python-morpheus-cypher" class="inline-onebox"&gt;GitHub - tryfan/python-morpheus-cypher&lt;/A&gt; .  I’d be happy to review a pull request or address an issue.  Please note that there is no SLA for fixing this as this falls under our policy located here: &lt;A href="https://support.morpheusdata.com/s/article/Morpheus-Open-Source-Code-Support-Policy?language=en_US" class="inline-onebox"&gt;Morpheus Support&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 17:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250428#M3602</guid>
      <dc:creator />
      <dc:date>2024-10-08T17:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250429#M3603</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt;  can you explan more about it? Do you have any sample code on how we cna use the var morpheus.executionLeaseToken ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 15:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250429#M3603</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-18T15:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250430#M3604</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hpe.com/u/ncelebic"&gt;@ncelebic&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;here is the pull request&lt;/P&gt;
&lt;ASIDE class="onebox githubpullrequest" data-onebox-src="https://github.com/tryfan/python-morpheus-cypher/pull/18"&gt;
  &lt;HEADER class="source"&gt;

      &lt;A href="https://github.com/tryfan/python-morpheus-cypher/pull/18" target="_blank" rel="noopener nofollow ugc"&gt;github.com/tryfan/python-morpheus-cypher&lt;/A&gt;
  &lt;/HEADER&gt;

  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="github-row" data-github-private-repo="false"&gt;



    &lt;DIV class="github-icon-container" title="Pull Request"&gt;
      &lt;SVG width="60" height="60" class="github-icon" viewbox="0 0 12 16" aria-hidden="true"&gt;&lt;PATH fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"&gt;&lt;/PATH&gt;&lt;/SVG&gt;
    &lt;/DIV&gt;

  &lt;DIV class="github-info-container"&gt;



      &lt;H4&gt;
        &lt;A href="https://github.com/tryfan/python-morpheus-cypher/pull/18" target="_blank" rel="noopener nofollow ugc"&gt;Update __init__.py&lt;/A&gt;
      &lt;/H4&gt;

    &lt;DIV class="branches"&gt;
      &lt;CODE style="background : #f0f1f2;"&gt;tryfan:master&lt;/CODE&gt; ← &lt;CODE style="background : #f0f1f2;"&gt;MarthaRaj:patch-1&lt;/CODE&gt;
    &lt;/DIV&gt;

      &lt;DIV class="github-info"&gt;
        &lt;DIV class="date"&gt;
          opened &lt;SPAN class="discourse-local-date" data-format="ll" data-date="2024-10-08" data-time="18:51:19" data-timezone="UTC"&gt;06:51PM - 08 Oct 24 UTC&lt;/SPAN&gt;
        &lt;/DIV&gt;

        &lt;DIV class="user"&gt;
          &lt;span class="lia-inline-image-display-wrapper" image-alt="MarthaRaj"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150516iDD645ACA91B1686C/image-size/large?v=v2&amp;amp;px=2000" role="button" title="54ad31f90ea2754c93284dece7d637e19ea43e7a.png" alt="54ad31f90ea2754c93284dece7d637e19ea43e7a.png" /&gt;&lt;/span&gt;
        &lt;/DIV&gt;

        &lt;DIV class="lines" title="1 commits changed 1 files with 11 additions and 5 deletions"&gt;
          &lt;A href="https://github.com/tryfan/python-morpheus-cypher/pull/18/files" target="_blank" rel="noopener nofollow ugc"&gt;
            &lt;SPAN class="added"&gt;+11&lt;/SPAN&gt;
            &lt;SPAN class="removed"&gt;-5&lt;/SPAN&gt;
          &lt;/A&gt;
        &lt;/DIV&gt;
      &lt;/DIV&gt;
  &lt;/DIV&gt;
&lt;/DIV&gt;

  &lt;DIV class="github-row"&gt;
    &lt;P class="github-body-container"&gt;&lt;A href="https://discuss.morpheusdata.com/t/better-error-handiling-in-morpheus-cypher-pac" target="_blank"&gt;https://discuss.morpheusdata.com/t/better-error-handiling-in-morpheus-cypher-pac&lt;/A&gt;&lt;SPAN class="show-more-container"&gt;&lt;A href="https://github.com/tryfan/python-morpheus-cypher/pull/18" target="_blank" rel="noopener nofollow ugc" class="show-more"&gt;…&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="excerpt hidden"&gt;kage/2085&lt;/SPAN&gt;&lt;/P&gt;
  &lt;/DIV&gt;

  &lt;/ARTICLE&gt;

  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;

  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;</description>
      <pubDate>Tue, 08 Oct 2024 18:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250430#M3604</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-08T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250431#M3605</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/ncelebic"&gt;@ncelebic&lt;/A&gt;  we see this error this morning too,&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Traceback (most recent call last):
  File "", line 44, in 
  File "", line 25, in main
  File "/var/opt/morpheus/morpheus-local/workspace/py-04d507ad-579b-4f9d-9f14-f1a0e7c5e196/lib/python3.11/site-packages/morpheuscypher/__init__.py", line 122, in get
    raise Exception(data['msg'])
Exception: Unauthorized. You must be authenticated to access this api
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;While you might not notice the error with a single execution, our scenario involves jobs that repeatedly execute this module more than ten times simultaneously.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250431#M3605</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-15T14:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250432#M3606</link>
      <description>&lt;P&gt;Tagging &lt;A class="mention" href="https://community.hpe.com/u/ncelebic"&gt;@ncelebic&lt;/A&gt;  &lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 17:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250432#M3606</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-07T17:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250433#M3607</link>
      <description>&lt;P&gt;Thank you somuch &lt;A class="mention" href="https://community.hpe.com/u/tyler_boyd"&gt;@Tyler_Boyd&lt;/A&gt;  i did see the Pull request, will test and let you know once the code is merged.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 13:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250433#M3607</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-23T13:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250434#M3608</link>
      <description>&lt;P&gt;Thank you &lt;A class="mention" href="https://community.hpe.com/u/tyler_boyd"&gt;@Tyler_Boyd&lt;/A&gt;  will let you know if i run into any issues&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 19:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250434#M3608</guid>
      <dc:creator>rajmartha</dc:creator>
      <dc:date>2024-10-23T19:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250435#M3609</link>
      <description>&lt;P&gt;You would just use morpheus[“executionLeaseToken”] instead of morpheus[‘morpheus’][‘apiAccessToken’]&lt;/P&gt;
&lt;P&gt;executionLeaseToken is valid during the task execution while apiAccessToken is valid until it is called again.&lt;/P&gt;
&lt;P&gt;If you are using the cypher module you would use&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;from morpheuscypher import Cypher

value = Cypher(morpheus=morpheus,ssl_verify=False,token=morpheus["executionLeaseToken"]).get('secret/test')

print(value)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/ncelebic"&gt;@ncelebic&lt;/A&gt; It might be good to update the code to prefer executionLeaseToken over apiAccessToken. Older versions won’t have executionLeaseToken so I could have it fall back to apiAccessToken. I will make a pull request.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 12:26:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250435#M3609</guid>
      <dc:creator>tyboyd</dc:creator>
      <dc:date>2024-10-23T12:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250436#M3610</link>
      <description>&lt;P&gt;You should be good to test now.&lt;/P&gt;
&lt;P&gt;If you want to specify the version you can set: ‘morpheus-cypher==0.3.1’ in the additional packages field&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 18:59:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250436#M3610</guid>
      <dc:creator>tyboyd</dc:creator>
      <dc:date>2024-10-23T18:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250437#M3611</link>
      <description>&lt;P&gt;Thanks for the PR!  After looking at this entire block more closely, it was causing more trouble than it was worth in testing.  This was based on an API path change in version 5.3.3 of Morpheus, which is no longer relevant.  I left an escape hatch open in the README, but otherwise just ripped it out.&lt;/P&gt;
&lt;P&gt;I just pushed version 0.3.0 to PyPI.  Let me know if you have any issues either in this thread, or you can raise an issue in the github repo.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 13:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250437#M3611</guid>
      <dc:creator />
      <dc:date>2024-10-09T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Better error handiling in Morpheus cypher package</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250438#M3612</link>
      <description>&lt;P&gt;I am not getting this error when I run the module. This looks like a token issue in Morpheus as opposed to a module issue. I would need more detail to offer any more insight.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 19:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/better-error-handiling-in-morpheus-cypher-package/m-p/7250438#M3612</guid>
      <dc:creator />
      <dc:date>2024-10-14T19:05:11Z</dc:date>
    </item>
  </channel>
</rss>

