{"id":7099,"date":"2020-10-09T18:43:56","date_gmt":"2020-10-09T23:43:56","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=7099"},"modified":"2020-10-12T12:02:34","modified_gmt":"2020-10-12T17:02:34","slug":"cyberark-error-listing-accounts","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=7099","title":{"rendered":"Cyberark &#8212; Error Listing Accounts"},"content":{"rendered":"<p>I was getting an odd error from my attempt to list accounts in Cyberark &#8212; &#8220;Object reference not set to an instance of an object&#8221;. Searching the Internet yielded a lot of issues that <em>weren&#8217;t<\/em> my problem (ampersands in account names in an older version, issues with SSL {and, seriously, someone says disable SSL on the connection they use to retrieve passwords!?! And not just random someone, but <a href=\"https:\/\/blogs.rand.com\/support\/2014\/11\/vault-error-object-reference-not-set-to-an-instance-of-an-object.html\" target=\"_blank\" rel=\"noopener noreferrer\">RAND<\/a>?!?}). My issue turned out to be that I was copy\/pasting code and used requests.post instead of requests.get &#8212; attempting to POST to a GET URL generates this error too.<\/p>\n<p>DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cyberark.example.com:443<br \/>\nDEBUG:urllib3.connectionpool:https:\/\/cyberark.example.com:443 &#8220;POST \/PasswordVault\/API\/auth\/Cyberark\/Logon HTTP\/1.1&#8221; 200 182<br \/>\nBefore request, header is {&#8216;Content-Type&#8217;: &#8216;application\/json&#8217;, &#8216;Authorization&#8217;: &#8216;5TQz5WVjYm5tMjBh5C00M5YyLT50MjYt5Tc2Y5I2ZDI5&#8230;AwMDA5MDA7&#8217;}<br \/>\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cyberark.example.com:443<br \/>\nDEBUG:urllib3.connectionpool:https:\/\/cyberark.example.com:443 &#8220;POST \/PasswordVault\/api\/Accounts?search=sample_account&amp;searchType=contains HTTP\/1.1&#8221; 500 97<br \/>\n{&#8220;ErrorCode&#8221;:&#8221;CAWS00001E&#8221;,&#8221;ErrorMessage&#8221;:&#8221;Object reference not set to an instance of an object.&#8221;} 500 Internal Server Error<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was getting an odd error from my attempt to list accounts in Cyberark &#8212; &#8220;Object reference not set to an instance of an object&#8221;. Searching the Internet yielded a lot of issues that weren&#8217;t my problem (ampersands in account names in an older version, issues with SSL {and, seriously, someone says disable SSL on &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,30],"tags":[1154,664],"class_list":["post-7099","post","type-post","status-publish","format-standard","hentry","category-coding","category-system-administration","tag-cyberark","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7099"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7099\/revisions"}],"predecessor-version":[{"id":7100,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7099\/revisions\/7100"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}