I pulled this code from here: https://gist.github.com/teroka/0720274b87b77fe7171f
I made some changes: https://gist.github.com/teroka/0720274b87b77fe7171f#gistcomment-3911903
So the changed code:
The error that come after running the above:
xxxxxxxxxx
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.dell.com', port=443): Max retries exceeded with url: /support/v2/assetinfo/detail/tags.json?svctags=main.py&apikey=d676cf6e1e0ceb8fd14e8cb69acd812d (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa83d980850>: Failed to establish a new connection: [Errno -3] Try again'))
** Process exited - Return Code: 1 **
Press Enter to exit terminal
I have tried searching parts of errors but landed on nothing. Help is highly appreciated.
Also I tried making myself an API link(dunno if I made it correctly) by putting the api key and a working service tag to the URL and got something - and I can’t find the browser history for it. But it looked exacltly like this, which is what you get on the api.dell.com:
xxxxxxxxxx
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:body>
<soapenv:fault>
<faultcode>soapenv:Server
<faultstring>Policy Falsified
<faultactor>https://api.dell.com/
<detail>
<l7:policyresult xmlns:l7="http://www.layer7tech.com/ws/policy/fault" status="Service Not Found. The request may have been sent to an invalid URL, or intended for an unsupported operation.">