Lipper API - Token Errors

Best Answer
-
You may need to log the error message from the body of the response message.
For more information, please refer to the Limitations and Guidelines for the RDP Authentication Service article.
0
Answers
-
hi @maximilian.mayrl ,
Could you please provide the code you use. (please also remove the credentials out of the code)
0 -
@maximilian.mayrl , Is this a trail license? If so, maybe you can check if it's trail period is expired. If it is a normal paid license, did that user recently added or modified his/her service subscription? I am using the RDP Funds API and I have no issue encountered today.
0 -
SCOPE = "trapi
TOKEN_ENDPOINT = "https://api.refinitiv.com/auth/oauth2/v1/token"
expires_at = time.time()
auth_data = {"username": pen.settings.LIPPER_USERNAME, "password": pen.settings.LIPPER_PASSWORD, "grant_type": "password","scope": SCOPE, "takeExclusiveSignOnControl": "true"
}
refresh_data = {"refresh_token": lipper_refresh_token, "username": pen.settings.LIPPER_USERNAME, "grant_type": "refresh_token"
}
def get_token():
global lipper_token, expires_at, lipper_refresh_token, rest_token_error_messages
# global datascope_token
if lipper_token == '' or expires_at < time.time():
if lipper_refresh_token == '':
respond = requests.post(TOKEN_ENDPOINT, headers = {"Accept": "application/json"}, data = auth_data, auth = (CLIENT_ID, CLIENT_SECRET))
else:
respond = requests.post(TOKEN_ENDPOINT, headers = {"Accept": "application/json"}, data = refresh_data, auth = (CLIENT_ID, CLIENT_SECRET))
if respond.status_code != 200:
return None
else:
respond_dict = respond.json()
lipper_token = respond_dict['access_token']
lipper_refresh_token = respond_dict['refresh_token']
refresh_data['refresh_token'] = lipper_refresh_token
expires_at = time.time() + int(respond_dict['expires_in']) - 10
SCOPE = respond_dict['scope']
auth_data['scope'] = SCOPE
return lipper_token0 -
Hi @raksina.samasiri
There is the code we use for getting a token. It works without problems locally and only from time to time on the server.0 -
@bob.lee
We have a normal paid license and the subscription user was not changed recently. The problem is that everything works just fine locally and not stable on the server. Sometimes we get Token Error 400 and 401 there.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
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛