Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by wenbo.zhang · Sep 11, 2021 at 03:56 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonerror-403

Eikon API 403 Error, Application id not valid

Hi I am new to Eikon API. I used the App Key Generator to get the key and tried the set_app_key but got the 403 error. My python eikon version is 1.1.12 and below is the error msg.


# eikon API connection

import eikon as ek

_EIKON_API= 'b603fcaa78a548408cb085e13d8331a955c63fa3'

ek.set_log_level(1)

ek.set_app_key(_EIKON_API)

ek.get_timeseries('AAPL.O', interval='daily')

2021-09-11 11:30:02,161 P[36228] [MainThread 30864] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...

2021-09-11 11:30:02,161 P[36228] [MainThread 30864] Request to http://127.0.0.1:9060/api/status

headers = {'x-tr-applicationid': 'b603fcaa78a548408cb085e13d8331a955c63fa3'}

params = None

2021-09-11 11:30:02,193 P[36228] [MainThread 30864] HTTP request response 200: {"statusCode":"ST_PROXY_READY","version":"2.9.0"}

2021-09-11 11:30:02,193 P[36228] [MainThread 30864] Checking port 9060 response : 200 - {"statusCode":"ST_PROXY_READY","version":"2.9.0"}

2021-09-11 11:30:02,193 P[36228] [MainThread 30864] Port 9060 was retrieved from .portInUse file

2021-09-11 11:30:02,193 P[36228] [MainThread 30864] Try to handshake on url http://127.0.0.1:9060/api/handshake...

2021-09-11 11:30:02,195 P[36228] [MainThread 30864] Request to http://127.0.0.1:9060/api/handshake

headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'b603fcaa78a548408cb085e13d8331a955c63fa3'}

params = None

2021-09-11 11:30:02,430 P[36228] [MainThread 30864] HTTP request response 400: Application key is not valid.

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] Response : 400 - Application key is not valid.

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] Response 400 on handshake port 9060 : Application key is not valid.

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] Application ID: b603fcaa78a548408cb085e13d8331a955c63fa3

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] Init a Desktop session with new app_key

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] Port 9060 on local proxy was detected

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] entity: TimeSeries

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] payload: {'rics': ['AAPL.O'], 'fields': ['*'], 'interval': 'daily', 'startdate': '2021-06-03T11:30:02.431790-04:00', 'enddate': '2021-09-11T11:30:02.431790-04:00'}

2021-09-11 11:30:02,431 P[36228] [MainThread 30864] Request:{'Entity': {'E': 'TimeSeries', 'W': {'rics': ['AAPL.O'], 'fields': ['*'], 'interval': 'daily', 'startdate': '2021-06-03T11:30:02.431790-04:00', 'enddate': '2021-09-11T11:30:02.431790-04:00'}}}

2021-09-11 11:30:02,432 P[36228] [MainThread 30864] Request to http://127.0.0.1:9060/api/v1/data

headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'b603fcaa78a548408cb085e13d8331a955c63fa3'}

params = None

2021-09-11 11:30:02,603 P[36228] [MainThread 30864] HTTP request response 403: {"ErrorCode":1401,"ErrorMessage":"Application id b603fcaa78a548408cb085e13d8331a955c63fa3 is invalid"}

2021-09-11 11:30:02,604 P[36228] [MainThread 30864] HTTP Response code: 403

2021-09-11 11:30:02,604 P[36228] [MainThread 30864] HTTP Response: {"ErrorCode":1401,"ErrorMessage":"Application id b603fcaa78a548408cb085e13d8331a955c63fa3 is invalid"}

2021-09-11 11:30:02,604 P[36228] [MainThread 30864] Error code 403 | Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id b603fcaa78a548408cb085e13d8331a955c63fa3 is invalid"}

2021-09-11 11:30:02,604 P[36228] [MainThread 30864] HTTP request failed: EikonError-Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id b603fcaa78a548408cb085e13d8331a955c63fa3 is invalid"}

Traceback (most recent call last):

File "C:\Users\ericw\anaconda3\envs\env_dev\lib\site-packages\eikon\json_requests.py", line 127, in send_json_request

_raise_for_status(response)

File "C:\Users\ericw\anaconda3\envs\env_dev\lib\site-packages\eikon\json_requests.py", line 271, in _raise_for_status

raise EikonError(response.status_code, error_msg)

eikon.eikonError.EikonError: Error code 403 | Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id b603fcaa78a548408cb085e13d8331a955c63fa3 is invalid"}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\ericw\anaconda3\envs\env_dev\lib\site-packages\IPython\core\interactiveshell.py", line 3437, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)

File "<ipython-input-2-a07e40b5c73a>", line 9, in <module>

ek.get_timeseries('AAPL.O', interval='daily')

File "C:\Users\ericw\anaconda3\envs\env_dev\lib\site-packages\eikon\time_series.py", line 182, in get_timeseries

ts_result = eikon.json_requests.send_json_request(TimeSeries_UDF_endpoint, payload, debug=debug)

File "C:\Users\ericw\anaconda3\envs\env_dev\lib\site-packages\eikon\json_requests.py", line 134, in send_json_request

raise EikonError(eikon_err.code, eikon_err.message)

eikon.eikonError.EikonError: Error code 403 | Client Error: {"ErrorCode":1401,"ErrorMessage":"Application id b603fcaa78a548408cb085e13d8331a955c63fa3 is invalid"}

ek.__version__

Out[3]: '1.1.12'

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Answer by chavalit-jintamalit · Sep 13, 2021 at 05:44 AM

Hi @wenbo.zhang

I tested your app id and it seems to be invalid.

ahs.png


Please launch "APPKEY" app on Eikon Desktop.

And please let me know the Product ID.

ahs2.png


ahs.png (178.6 KiB)
ahs2.png (269.7 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by wenbo.zhang · Sep 13, 2021 at 01:20 PM

Product ID

<removed by moderator>


APPKEY

<removed by moderator>

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by chavalit-jintamalit · Sep 14, 2021 at 03:20 AM

Hi @wenbo.zhang

I tested all your app keys and all of them seem to be invalid.

ahs1.png


So I submitted ticket no.10380844 on your behalf to the helpdesk.

They will contact you shortly.


ahs1.png (104.3 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
13 People are following this question.

Related Questions

Retrieve Commodity Flows data using Python API

Download API Proxy Python for Windows.

Eikon Python API 403 response

How to get all investors for a list of stocks, historically with the python API

What other parameters can be used with the statement pertaining to Corporate Actions data such as Stock Splits?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges