getting {"error":"access_denied" } error when running EMA example program Cons113.exe
I am trying to run Example program from EMA C++ library ( version 2.0.0.L1) but I am getting below error
loggerMsg
TimeStamp: 13:03:16.067
ClientName: ChannelCallbackClient
Severity: Error
Text: Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_4
Instance Name Consumer_4_1
RsslReactor 0x000002B3F5E3B1A0
RsslChannel 0
Error Id -1
Internal sysError 0
Error Location \Jenkins\workspace\ESDKCore_RCDEV\OS\VS141-64\rcdev\source\rtsdk\Cpp-C\Eta\Impl\Reactor\rsslReactor.c:6876
Error Text Failed to request authentication token information with HTTP error 400. Text: {"error":"access_denied" }
loggerMsgEnd
Exception Type='OmmInvalidUsageException', Text='Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_4
Instance Name Consumer_4_1
RsslReactor 0x000002B3F5E3B1A0
RsslChannel 0
Error Id -1
Internal sysError 0
Error Location \Jenkins\workspace\ESDKCore_RCDEV\OS\VS141-64\rcdev\source\rtsdk\Cpp-C\Eta\Impl\Reactor\rsslReactor.c:6876
Error Text Failed to request authentication token information with HTTP error 400. Text: {"error":"access_denied" }', ErrorCode='-1'
Best Answer
-
Just to eliminate the obvious, can you confirm the following:
- The username is the Machine ID that you would have received in a welcome email - something like GE-A-xxxxxxxx-x-xxxx
- The password is the long password you would have set for the above machineID using the set password link in the above welcome email
- The Appkey/Client ID was set as described on this page with the EDP API checkbox ticked?
- That you also have a MyRefinitiv account as mentioned in the Welcome Email
0
Answers
-
Do you have Refintiv Realtime Optimised credentials? Did you receive a 'Welcome to Refinitiv - Your New Account' email which contained a MachineID and a link to set your MachineID password?
0 -
Hi @umer.nalla ,
Yes I received "Welcome To Refinitiv Real-Time - Optimized" email.
There are three steps mentioned in mail.
Step 1 – Receive your Welcome E-mails
Step 2 – Register your Application
Step 3 – Getting Connected.
We completed first two steps and I have AppKey with me. but struggling for step 3.
0 -
Hello @Bhimrao.Ghule
Did you pass a valid MachineID, password, and client id/app key credentials to the EMA example?
If you have Refintiv Real-Time - Optimised access credential, could you please verify your credential with the following curl script to see if it returns access tokens or error messages?
curl --location --request POST 'https://api.refinitiv.com/auth/oauth2/v1/token'; \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'authorization: ' \
--data-urlencode 'username=<MachineID>' \
--data-urlencode 'password=<Password>' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=trapi' \
--data-urlencode 'takeExclusiveSignOnControl=true' \
--data-urlencode 'client_id=<App Key/Client_ID>'0 -
Hi @wasin.waeosri ,
I have checke again and seems that, passing valid MachineID, password, and client id/app key credentials to the EMA example.
I run curl command as mentioned, and I got exact same result on curl command also.
Result of curl : {"error":"access_denied" }
0 -
Thanks @umer.nalla I was using username instead of machine ID, I am able to connect to cloud now.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛