Error code 403 | Client Error

Hi,
When I run below code,
I do see below error message
2024-11-04 17:20:09,235 P[42128] [MainThread 46476] 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"><!-- Message.TemplateName: URLBlocked Message.Language: --><html><!-- head --><head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/> <title>McAfee Web Gateway - Notification - Access to this site has been BLOCKED by CA-CIB Internet Usage Policy</title> <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type="text/javascript" ></script> <link rel="stylesheet" type="text/css" href="/mwg-internal/de5fs23hu73ds/files/intel/stylesheet.css" /></head><!-- /head --><!-- body --><body onload="swOnLoad();"> <!-- wrapper --> <div class="wrapper"> <!-- logo --> <div class="logo"><a target='_blank' href='http://172.16.113.24:80/checkurl?URL=http://127.0.0.1:9060/api/v1/data&local=checked&cloud=checked'> <img src="/mwg-internal/de5fs23hu73ds/files/intel/img/CACIB_Logo.png" style="border-style: none" alt="McAfee Web Gateway"/></a>
...
</body><!-- /body --></html>
---------------------------------------------------------------------------EikonError Traceback (most recent call last)c:\Program64\Python\Python\lib\site-packages\eikon\json_requests.py in send_json_request(entity, payload, debug) 126 else:--> 127 _raise_for_status(response) 128 except httpx.TimeoutException as timeout_exception:c:\Program64\Python\Python\lib\site-packages\eikon\json_requests.py 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"><!-- Message.TemplateName: URLBlocked Message.Language: --><html><!-- head --><head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/> <title>McAfee Web Gateway - Notification - Access to this site has been BLOCKED by CA-CIB Internet Usage Policy</title> <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type="text/javascript" ></script> <link rel="stylesheet" type="text/css" href="/mwg-internal/de5fs23hu73ds/files/intel/stylesheet.css" /></head><!-- /head -->
...
</body><!-- /body --></html>
how can I solve this issue? do I need to key in proxy setting? thanks.
Answers
-
Hi @max.kang ,
Eikon Data API needs to connect to the Workspace/Eikon desktop application that is up and running on the same machine (localhost) because the desktop application acts as a proxy between the API and Workspace platform.
The error messages indicate that the issue relates to the McAfee Web Gateway in your machine. The McAfee software in your machine might intercept this request and reject it. You may need to contact your local IT support team to verify this issue.
However, some users can solve this issue by setting the NO_PROXY environment variable.
import os
os.environ['NO_PROXY'] = '127.0.0.1'If the setting above does not solve the issue, I highly recommend you contact your local IT support team.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛