<?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 Export/import  policy package error: KeyError: 'sid' in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-import-policy-package-error-KeyError-sid/m-p/133249#M6414</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the python tool export/import policy package, i'm getting the following error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "..\CKP_outil_export-import\ExportImportPolicyPackage-master\import_expor&lt;BR /&gt;t_package.py", line 41, in &amp;lt;module&amp;gt;&lt;BR /&gt;payload=payload)&lt;BR /&gt;File "..\Python379\lib\site-packages\cpapi\mgmt_api.py", line 211, in login&lt;BR /&gt;return self._common_login_logic(credentials, continue_last_session, domain,&lt;BR /&gt;read_only, payload)&lt;BR /&gt;File "..\Python379\lib\site-packages\cpapi\mgmt_api.py", line 168, in _common_&lt;BR /&gt;login_logic&lt;BR /&gt;self.sid = login_res.data["sid"]&lt;BR /&gt;KeyError: 'sid'&lt;/P&gt;&lt;P&gt;I use the 1st option (1. Enter user credentials manually), I don't know whey it's searching for the sid&lt;/P&gt;&lt;P&gt;Is there a specific configuration to do in checkpoint side? I used two different users (admin and another user but i have the same problem)&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 16:14:28 GMT</pubDate>
    <dc:creator>Shaimaa</dc:creator>
    <dc:date>2021-11-04T16:14:28Z</dc:date>
    <item>
      <title>Export/import  policy package error: KeyError: 'sid'</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-import-policy-package-error-KeyError-sid/m-p/133249#M6414</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the python tool export/import policy package, i'm getting the following error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "..\CKP_outil_export-import\ExportImportPolicyPackage-master\import_expor&lt;BR /&gt;t_package.py", line 41, in &amp;lt;module&amp;gt;&lt;BR /&gt;payload=payload)&lt;BR /&gt;File "..\Python379\lib\site-packages\cpapi\mgmt_api.py", line 211, in login&lt;BR /&gt;return self._common_login_logic(credentials, continue_last_session, domain,&lt;BR /&gt;read_only, payload)&lt;BR /&gt;File "..\Python379\lib\site-packages\cpapi\mgmt_api.py", line 168, in _common_&lt;BR /&gt;login_logic&lt;BR /&gt;self.sid = login_res.data["sid"]&lt;BR /&gt;KeyError: 'sid'&lt;/P&gt;&lt;P&gt;I use the 1st option (1. Enter user credentials manually), I don't know whey it's searching for the sid&lt;/P&gt;&lt;P&gt;Is there a specific configuration to do in checkpoint side? I used two different users (admin and another user but i have the same problem)&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 16:14:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-import-policy-package-error-KeyError-sid/m-p/133249#M6414</guid>
      <dc:creator>Shaimaa</dc:creator>
      <dc:date>2021-11-04T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export/import  policy package error: KeyError: 'sid'</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-import-policy-package-error-KeyError-sid/m-p/133261#M6415</link>
      <description>&lt;P&gt;The SID will be used internally, that's basically your token for connecting to the API. Worth checking to see if you can use mgmt_cli locally on your management server with those credentials. If that works out ok - check that your API settings allow connections from the host you're running the script on.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 17:20:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-import-policy-package-error-KeyError-sid/m-p/133261#M6415</guid>
      <dc:creator>StuartGreen</dc:creator>
      <dc:date>2021-11-04T17:20:51Z</dc:date>
    </item>
  </channel>
</rss>

