<?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>Question Re: SAP CAI Python Flask integration error - Type Error: 'NoneType' object is not subscriptable in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510212#M4688580</link>
    <description>&lt;P&gt;Team,  I am trying
to register the subscription-manager  on
new Linux server, preparing for the SAP application server, but I am getting this error.  Any fix or workaround? Highly apricated.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt; &lt;/P&gt;

&lt;P&gt;2022-09-01 17:12:45,296 [ERROR]
subscription-manager:801966:MainThread @managercli.py:219 - 'NoneType' object
is not subscriptable&lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;

&lt;P&gt;  File
"/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py",
line 1600, in _do_command&lt;/P&gt;

&lt;P&gt;   
no_owner_cb=self._no_owner_cb&lt;/P&gt;

&lt;P&gt;  File
"/usr/lib64/python3.6/site-packages/rhsmlib/services/register.py",
line 190, in determine_owner_key&lt;/P&gt;

&lt;P&gt;    return
owners[0]['key']&lt;/P&gt;

&lt;P&gt;TypeError: 'NoneType' object is not subscriptable&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 00:04:56 GMT</pubDate>
    <dc:creator>former_member268895</dc:creator>
    <dc:date>2022-09-02T00:04:56Z</dc:date>
    <item>
      <title>SAP CAI Python Flask integration error - Type Error: 'NoneType' object is not subscriptable</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaq-p/12510209</link>
      <description>&lt;P&gt;Tutorials: &lt;A href="https://developers.sap.com/tutorials/conversational-ai-api-oauth.html" target="test_blank"&gt;https://developers.sap.com/tutorials/conversational-ai-api-oauth.html&lt;/A&gt; &lt;BR /&gt;-------------------------- &lt;BR /&gt; &lt;BR /&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;When I am testing st step 8, I am getting this error. &lt;/P&gt;
  &lt;BLOCKQUOTE&gt;
    TypeError: 'NoneType' object is not subscriptable 
  &lt;/BLOCKQUOTE&gt;
  &lt;P&gt;At the bottom of dump shown, I am getting this error: &lt;/P&gt;
  &lt;H4&gt;&lt;CITE&gt;chatbot-api.py"&lt;/CITE&gt;, line &lt;EM&gt;40&lt;/EM&gt;, in &lt;CODE&gt;api&lt;/CODE&gt;&lt;/H4&gt;
  &lt;P&gt;This the response from api function: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Results:
&amp;lt;Response [400]&amp;gt;
Content
b'{"logs":[],"results":null,"message":"Request is invalid","error":{"error_code":"JTech - 1002","uuid":"7d5d98d7-c03d-49f9-b903-336baa0cad1c","details":["HV000090: Unable to access isConversationIdSet."]}}' &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Please help.&lt;A href="https://answers.sap.com/storage/temp/1988844-chatbot-api.txt" data-attachment="1988844"&gt;chatbot-api.txt&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 17:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaq-p/12510209</guid>
      <dc:creator>kjyothiraditya</dc:creator>
      <dc:date>2021-11-02T17:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAP CAI Python Flask integration error - Type Error: 'NoneType' object is not subscriptable</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510210#M4688578</link>
      <description>&lt;P&gt;First, Step 8 is the question on the tutorial, so how can you get an error?&lt;/P&gt;&lt;P&gt;Second, can you explain more what you are doing when you get the error? Are you able to start the Flask server? Can you show the Terminal output when you run the application? Can you call the server with just / route and do you get 404 error? Are you able to do the Postman version: &lt;A href="https://developers.sap.com/tutorials/conversational-ai-api-oauth-postman.html" target="test_blank"&gt;https://developers.sap.com/tutorials/conversational-ai-api-oauth-postman.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And what is line 40 for you? For me it is part of the caching code and I assume you did not get the proper response and then tried to access a dictionary with a None index. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 07:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510210#M4688578</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2021-11-03T07:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP CAI Python Flask integration error - Type Error: 'NoneType' object is not subscriptable</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510211#M4688579</link>
      <description>&lt;P&gt;Let me know if you need more help with this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 11:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510211#M4688579</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2021-11-16T11:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAP CAI Python Flask integration error - Type Error: 'NoneType' object is not subscriptable</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510212#M4688580</link>
      <description>&lt;P&gt;Team,  I am trying
to register the subscription-manager  on
new Linux server, preparing for the SAP application server, but I am getting this error.  Any fix or workaround? Highly apricated.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt; &lt;/P&gt;

&lt;P&gt;2022-09-01 17:12:45,296 [ERROR]
subscription-manager:801966:MainThread @managercli.py:219 - 'NoneType' object
is not subscriptable&lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;

&lt;P&gt;  File
"/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py",
line 1600, in _do_command&lt;/P&gt;

&lt;P&gt;   
no_owner_cb=self._no_owner_cb&lt;/P&gt;

&lt;P&gt;  File
"/usr/lib64/python3.6/site-packages/rhsmlib/services/register.py",
line 190, in determine_owner_key&lt;/P&gt;

&lt;P&gt;    return
owners[0]['key']&lt;/P&gt;

&lt;P&gt;TypeError: 'NoneType' object is not subscriptable&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 00:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cai-python-flask-integration-error-type-error-nonetype-object-is-not/qaa-p/12510212#M4688580</guid>
      <dc:creator>former_member268895</dc:creator>
      <dc:date>2022-09-02T00:04:56Z</dc:date>
    </item>
  </channel>
</rss>

