I have a user having issues registering API key. Getting the errors below:
User is Litwiller, Dane in case it's a permissioning error.
2023-12-22 09:47:02,005 P[11976] [MainThread 2340] Error code 403 | Client Error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <!-- FileName: index.html Language: [en] --> <!--Head--> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>McAfee Web Gateway - Notification</title> <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type="text/javascript" ></script> <link rel="stylesheet" href="/mwg-internal/de5fs23hu73ds/files/default/stylesheet.css" /> </head> <!--/Head--> <!--Body--> <body onload="swOnLoad();"> <table class='bodyTable'> <tr> <td class='bodyData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> <!-- background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> --> <!--Logo--> <table class='logoTable'> <tr> <td class='logoData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> <img src='/mwg-internal/de5fs23hu73ds/files/default/img/logo-banner.gif' style="padding-top:0px;"> </td> </tr> </table> <!--/Logo--> <!--Contents--> <!-- FileName: URLBlocked.html Language: [en] --> <!--Title--> <table class='titleTable' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_navbar.jpg'> <tr> <td class='titleData'> Blocked by URL Filter Database </td> </tr> </table> <!--/Title--> <!--Content--> <table class="contentTable"> <tr> <td class="contentData"> <b>Dear Customer</b>,<p>The requested website is blocked. The URL is listed in categories that are not allowed by your administrator at this time. Please contact your CSL to submit a site review request.</p><br /><br /> </td> </tr> </table> <!--/Content--> <!--Info--> <table class="infoTable"> <tr> <td class="infoData"> <font size="2"> <b>User: </b>"" - <b>(</b>10.243.142.2<b>)</b><br /> <b>Site URL: </b><script type="text/javascript">break_line("http://127.0.0.1:9060/api/v1/data");</script><br /><br /> <script type="text/javascript"> writeToDocument("<b>Categories: </b>" + "" ); </script><br /> <b>Web Reputation: </b>Unverified<br /> <b>Resolved IP: </b>127.0.0.1<br /> </font> </td> </tr> </table> <!--/Info--> <!--/Contents--> <!--Policy--> <table class='policyTable'> <tr> <td class='policyHeading'> <hr> <br /> <!-- Company Acceptable Use Policy --> </td> </tr> <tr> <td class='policyData'> <!-- This is an optional acceptable use disclaimer that appears on every page. You may change the wording or remove this section entirely in index.html. --> </td> </tr> </table> <!--/Policy--> <!--Foot--> <table class='footTable'> <tr> <td class='helpDeskData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> For assistance, please contact the ASC helpdesk. </td> </tr> <tr> <td class='footData'> Generated <span id="time">2023-12-22 09:47:01</span> by <b>ATXMWG1</b> <br /> Rule Name: <b>Block by IP address</b> <br /> python-httpx/0.26.0 </td> </tr> </table> <!--/Foot--> </td> </tr> </table> </body> <!--/Body--> </html> <!-- Diagnostic Information URL:http://127.0.0.1:9060/api/v1/data URL.Host:127.0.0.1 URL.Destination.IP:127.0.0.1 URL.Categories: URL.Reputation:15 URL.ReputationString:Unverified URL.Geolocation: System.HostName: ATXMWG1 System.UUID: C0C5CC00-436C-11E8-906E-0012795D9712 http://Error.ID:0 Error.Message: http://Rules.CurrentRule.ID:5467 Rules.CurrentRule.Name: Block by IP address Rules.CurrentRuleSet.Name: Server URL Filtering Cycle.Name: Request Cycle.TopName: Request List.LastMatches: URL.FileExtension: URL.FileName:data Body.FileName:data Body.FullFileName:data Block.Reason:Blocked by URL filtering http://Block.ID:10 Proxy.IP: 10.241.187.183 Proxy.Port: 80 Client.IP:10.243.142.2 Authentication.CacheRemaingTime:0 Authentication.Failed:false Authentication.FailureReason.Message:(0) Authentication.IsAuthenticated:false Authentication.IsLandingOnServer:false Authentication.IsServerRequest:false Authentication.Method: Authentication.Realm: Authentication.UserName: Authentication.UserGroups: Header.Request.Get(Accept):application/json Header.Request.Get(Accept-Encoding):gzip, deflate Header.Request.Get(Host):127.0.0.1:9060 Header.Request.Get(Referer): Header.Request.Get(User-Agent):python-httpx/0.26.0 Header.Request.Get(Via): Header.Request.Get(X-Forwarded-For): Header.Response.Get(Content-Length): Header.Response.Get(Content-Type):text/html Header.Response.Get(Server): Header.Response.Get(Via): Header.Response.Get(X-Forwarded-For): Application.Name: --> 2023-12-22 09:47:02,006 P[11976] [MainThread 2340] HTTP request failed: EikonError-Client Error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <!-- FileName: index.html Language: [en] --> <!--Head--> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>McAfee Web Gateway - Notification</title> <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type="text/javascript" ></script> <link rel="stylesheet" href="/mwg-internal/de5fs23hu73ds/files/default/stylesheet.css" /> </head> <!--/Head--> <!--Body--> <body onload="swOnLoad();"> <table class='bodyTable'> <tr> <td class='bodyData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> <!-- background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> --> <!--Logo--> <table class='logoTable'> <tr> <td class='logoData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> <img src='/mwg-internal/de5fs23hu73ds/files/default/img/logo-banner.gif' style="padding-top:0px;"> </td> </tr> </table> <!--/Logo--> <!--Contents--> <!-- FileName: URLBlocked.html Language: [en] --> <!--Title--> <table class='titleTable' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_navbar.jpg'> <tr> <td class='titleData'> Blocked by URL Filter Database </td> </tr> </table> <!--/Title--> <!--Content--> <table class="contentTable"> <tr> <td class="contentData"> <b>Dear Customer</b>,<p>The requested website is blocked. The URL is listed in categories that are not allowed by your administrator at this time. Please contact your CSL to submit a site review request.</p><br /><br /> </td> </tr> </table> <!--/Content--> <!--Info--> <table class="infoTable"> <tr> <td class="infoData"> <font size="2"> <b>User: </b>"" - <b>(</b>10.243.142.2<b>)</b><br /> <b>Site URL: </b><script type="text/javascript">break_line("http://127.0.0.1:9060/api/v1/data");</script><br /><br /> <script type="text/javascript"> writeToDocument("<b>Categories: </b>" + "" ); </script><br /> <b>Web Reputation: </b>Unverified<br /> <b>Resolved IP: </b>127.0.0.1<br /> </font> </td> </tr> </table> <!--/Info--> <!--/Contents--> <!--Policy--> <table class='policyTable'> <tr> <td class='policyHeading'> <hr> <br /> <!-- Company Acceptable Use Policy --> </td> </tr> <tr> <td class='policyData'> <!-- This is an optional acceptable use disclaimer that appears on every page. You may change the wording or remove this section entirely in index.html. --> </td> </tr> </table> <!--/Policy--> <!--Foot--> <table class='footTable'> <tr> <td class='helpDeskData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> For assistance, please contact the ASC helpdesk. </td> </tr> <tr> <td class='footData'> Generated <span id="time">2023-12-22 09:47:01</span> by <b>ATXMWG1</b> <br /> Rule Name: <b>Block by IP address</b> <br /> python-httpx/0.26.0 </td> </tr> </table> <!--/Foot--> </td> </tr> </table> </body> <!--/Body--> </html> <!-- Diagnostic Information URL:http://127.0.0.1:9060/api/v1/data URL.Host:127.0.0.1 URL.Destination.IP:127.0.0.1 URL.Categories: URL.Reputation:15 URL.ReputationString:Unverified URL.Geolocation: System.HostName: ATXMWG1 System.UUID: C0C5CC00-436C-11E8-906E-0012795D9712 http://Error.ID:0 Error.Message: http://Rules.CurrentRule.ID:5467 Rules.CurrentRule.Name: Block by IP address Rules.CurrentRuleSet.Name: Server URL Filtering Cycle.Name: Request Cycle.TopName: Request List.LastMatches: URL.FileExtension: URL.FileName:data Body.FileName:data Body.FullFileName:data Block.Reason:Blocked by URL filtering http://Block.ID:10 Proxy.IP: 10.241.187.183 Proxy.Port: 80 Client.IP:10.243.142.2 Authentication.CacheRemaingTime:0 Authentication.Failed:false Authentication.FailureReason.Message:(0) Authentication.IsAuthenticated:false Authentication.IsLandingOnServer:false Authentication.IsServerRequest:false Authentication.Method: Authentication.Realm: Authentication.UserName: Authentication.UserGroups: Header.Request.Get(Accept):application/json Header.Request.Get(Accept-Encoding):gzip, deflate Header.Request.Get(Host):127.0.0.1:9060 Header.Request.Get(Referer): Header.Request.Get(User-Agent):python-httpx/0.26.0 Header.Request.Get(Via): Header.Request.Get(X-Forwarded-For): Header.Response.Get(Content-Length): Header.Response.Get(Content-Type):text/html Header.Response.Get(Server): Header.Response.Get(Via): Header.Response.Get(X-Forwarded-For): Application.Name: --> --------------------------------------------------------------------------- EikonError Traceback (most recent call last) File ~\AppData\Roaming\Python\Python311\site-packages\eikon\json_requests.py:127, in send_json_request(entity, payload, debug) 126 else: --> 127 _raise_for_status(response) 128 except httpx.TimeoutException as timeout_exception: File ~\AppData\Roaming\Python\Python311\site-packages\eikon\json_requests.py:271, in _raise_for_status(response) 270 logger.error(u'Error code {} | {}'.format(response.status_code, error_msg)) --> 271 raise EikonError(response.status_code, error_msg) EikonError: Error code 403 | Client Error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <!-- FileName: index.html Language: [en] --> <!--Head--> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>McAfee Web Gateway - Notification</title> <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type="text/javascript" ></script> <link rel="stylesheet" href="/mwg-internal/de5fs23hu73ds/files/default/stylesheet.css" /> </head> <!--/Head--> <!--Body--> <body onload="swOnLoad();"> <table class='bodyTable'> <tr> <td class='bodyData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> <!-- background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> --> <!--Logo--> <table class='logoTable'> <tr> <td class='logoData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> <img src='/mwg-internal/de5fs23hu73ds/files/default/img/logo-banner.gif' style="padding-top:0px;"> </td> </tr> </table> <!--/Logo--> <!--Contents--> <!-- FileName: URLBlocked.html Language: [en] --> <!--Title--> <table class='titleTable' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_navbar.jpg'> <tr> <td class='titleData'> Blocked by URL Filter Database </td> </tr> </table> <!--/Title--> <!--Content--> <table class="contentTable"> <tr> <td class="contentData"> <b>Dear Customer</b>,<p>The requested website is blocked. The URL is listed in categories that are not allowed by your administrator at this time. Please contact your CSL to submit a site review request.</p><br /><br /> </td> </tr> </table> <!--/Content--> <!--Info--> <table class="infoTable"> <tr> <td class="infoData"> <font size="2"> <b>User: </b>"" - <b>(</b>10.243.142.2<b>)</b><br /> <b>Site URL: </b><script type="text/javascript">break_line("http://127.0.0.1:9060/api/v1/data");</script><br /><br /> <script type="text/javascript"> writeToDocument("<b>Categories: </b>" + "" ); </script><br /> <b>Web Reputation: </b>Unverified<br /> <b>Resolved IP: </b>127.0.0.1<br /> </font> </td> </tr> </table> <!--/Info--> <!--/Contents--> <!--Policy--> <table class='policyTable'> <tr> <td class='policyHeading'> <hr> <br /> <!-- Company Acceptable Use Policy --> </td> </tr> <tr> <td class='policyData'> <!-- This is an optional acceptable use disclaimer that appears on every page. You may change the wording or remove this section entirely in index.html. --> </td> </tr> </table> <!--/Policy--> <!--Foot--> <table class='footTable'> <tr> <td class='helpDeskData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> For assistance, please contact the ASC helpdesk. </td> </tr> <tr> <td class='footData'> Generated <span id="time">2023-12-22 09:47:01</span> by <b>ATXMWG1</b> <br /> Rule Name: <b>Block by IP address</b> <br /> python-httpx/0.26.0 </td> </tr> </table> <!--/Foot--> </td> </tr> </table> </body> <!--/Body--> </html> <!-- Diagnostic Information URL:http://127.0.0.1:9060/api/v1/data URL.Host:127.0.0.1 URL.Destination.IP:127.0.0.1 URL.Categories: URL.Reputation:15 URL.ReputationString:Unverified URL.Geolocation: System.HostName: ATXMWG1 System.UUID: C0C5CC00-436C-11E8-906E-0012795D9712 http://Error.ID:0 Error.Message: http://Rules.CurrentRule.ID:5467 Rules.CurrentRule.Name: Block by IP address Rules.CurrentRuleSet.Name: Server URL Filtering Cycle.Name: Request Cycle.TopName: Request List.LastMatches: URL.FileExtension: URL.FileName:data Body.FileName:data Body.FullFileName:data Block.Reason:Blocked by URL filtering http://Block.ID:10 Proxy.IP: 10.241.187.183 Proxy.Port: 80 Client.IP:10.243.142.2 Authentication.CacheRemaingTime:0 Authentication.Failed:false Authentication.FailureReason.Message:(0) Authentication.IsAuthenticated:false Authentication.IsLandingOnServer:false Authentication.IsServerRequest:false Authentication.Method: Authentication.Realm: Authentication.UserName: Authentication.UserGroups: Header.Request.Get(Accept):application/json Header.Request.Get(Accept-Encoding):gzip, deflate Header.Request.Get(Host):127.0.0.1:9060 Header.Request.Get(Referer): Header.Request.Get(User-Agent):python-httpx/0.26.0 Header.Request.Get(Via): Header.Request.Get(X-Forwarded-For): Header.Response.Get(Content-Length): Header.Response.Get(Content-Type):text/html Header.Response.Get(Server): Header.Response.Get(Via): Header.Response.Get(X-Forwarded-For): Application.Name: --> During handling of the above exception, another exception occurred: EikonError Traceback (most recent call last) Cell In[2], line 1 ----> 1 ratings_data, err = tr.get_data(instruments=['0#.SPX'], 2 fields=['TR.CommonName', 3 'TR.IssuerRating(IssuerRatingSrc=SPI)', 4 'TR.IssuerRating(IssuerRatingSrc=SPI,Sdate=-10Y)']) 5 ratings_data.head() File ~\AppData\Roaming\Python\Python311\site-packages\eikon\data_grid.py:190, in get_data(instruments, fields, parameters, field_name, raw_output, debug) 187 if _endpoint == DataGridAsync_UDF_endpoint: 188 payload = {'requests': [payload]} --> 190 result = eikon.json_requests.send_json_request(_endpoint, payload, debug=debug) 192 if result.get('responses'): 193 result = result['responses'][0] File ~\AppData\Roaming\Python\Python311\site-packages\eikon\json_requests.py:134, in send_json_request(entity, payload, debug) 132 except EikonError as eikon_err: 133 logger.error(f"HTTP request failed: {type(eikon_err).__name__}-{eikon_err.message}") --> 134 raise EikonError(eikon_err.code, eikon_err.message) 135 except httpx.ConnectTimeout as connect_timeout: 136 logger.debug(f'HTTP ConnectTimeout: {connect_timeout}') EikonError: Error code 403 | Client Error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <!-- FileName: index.html Language: [en] --> <!--Head--> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>McAfee Web Gateway - Notification</title> <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type="text/javascript" ></script> <link rel="stylesheet" href="/mwg-internal/de5fs23hu73ds/files/default/stylesheet.css" /> </head> <!--/Head--> <!--Body--> <body onload="swOnLoad();"> <table class='bodyTable'> <tr> <td class='bodyData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> <!-- background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_body.gif'> --> <!--Logo--> <table class='logoTable'> <tr> <td class='logoData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> <img src='/mwg-internal/de5fs23hu73ds/files/default/img/logo-banner.gif' style="padding-top:0px;"> </td> </tr> </table> <!--/Logo--> <!--Contents--> <!-- FileName: URLBlocked.html Language: [en] --> <!--Title--> <table class='titleTable' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg_navbar.jpg'> <tr> <td class='titleData'> Blocked by URL Filter Database </td> </tr> </table> <!--/Title--> <!--Content--> <table class="contentTable"> <tr> <td class="contentData"> <b>Dear Customer</b>,<p>The requested website is blocked. The URL is listed in categories that are not allowed by your administrator at this time. Please contact your CSL to submit a site review request.</p><br /><br /> </td> </tr> </table> <!--/Content--> <!--Info--> <table class="infoTable"> <tr> <td class="infoData"> <font size="2"> <b>User: </b>"" - <b>(</b>10.243.142.2<b>)</b><br /> <b>Site URL: </b><script type="text/javascript">break_line("http://127.0.0.1:9060/api/v1/data");</script><br /><br /> <script type="text/javascript"> writeToDocument("<b>Categories: </b>" + "" ); </script><br /> <b>Web Reputation: </b>Unverified<br /> <b>Resolved IP: </b>127.0.0.1<br /> </font> </td> </tr> </table> <!--/Info--> <!--/Contents--> <!--Policy--> <table class='policyTable'> <tr> <td class='policyHeading'> <hr> <br /> <!-- Company Acceptable Use Policy --> </td> </tr> <tr> <td class='policyData'> <!-- This is an optional acceptable use disclaimer that appears on every page. You may change the wording or remove this section entirely in index.html. --> </td> </tr> </table> <!--/Policy--> <!--Foot--> <table class='footTable'> <tr> <td class='helpDeskData' background='/mwg-internal/de5fs23hu73ds/files/default/img/bg-main.gif'> For assistance, please contact the ASC helpdesk. </td> </tr> <tr> <td class='footData'> Generated <span id="time">2023-12-22 09:47:01</span> by <b>ATXMWG1</b> <br /> Rule Name: <b>Block by IP address</b> <br /> python-httpx/0.26.0 </td> </tr> </table> <!--/Foot--> </td> </tr> </table> </body> <!--/Body--> </html> <!-- Diagnostic Information URL:http://127.0.0.1:9060/api/v1/data URL.Host:127.0.0.1 URL.Destination.IP:127.0.0.1 URL.Categories: URL.Reputation:15 URL.ReputationString:Unverified URL.Geolocation: System.HostName: ATXMWG1 System.UUID: C0C5CC00-436C-11E8-906E-0012795D9712 http://Error.ID:0 Error.Message: http://Rules.CurrentRule.ID:5467 Rules.CurrentRule.Name: Block by IP address Rules.CurrentRuleSet.Name: Server URL Filtering Cycle.Name: Request Cycle.TopName: Request List.LastMatches: URL.FileExtension: URL.FileName:data Body.FileName:data Body.FullFileName:data Block.Reason:Blocked by URL filtering http://Block.ID:10 Proxy.IP: 10.241.187.183 Proxy.Port: 80 Client.IP:10.243.142.2 Authentication.CacheRemaingTime:0 Authentication.Failed:false Authentication.FailureReason.Message:(0) Authentication.IsAuthenticated:false Authentication.IsLandingOnServer:false Authentication.IsServerRequest:false Authentication.Method: Authentication.Realm: Authentication.UserName: Authentication.UserGroups: Header.Request.Get(Accept):application/json Header.Request.Get(Accept-Encoding):gzip, deflate Header.Request.Get(Host):127.0.0.1:9060 Header.Request.Get(Referer): Header.Request.Get(User-Agent):python-httpx/0.26.0 Header.Request.Get(Via): Header.Request.Get(X-Forwarded-For): Header.Response.Get(Content-Length): Header.Response.Get(Content-Type):text/html Header.Response.Get(Server): Header.Response.Get(Via): Header.Response.Get(X-Forwarded-For): Application.Name: