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 D:\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 D:\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'
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?
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.
Just to eliminate the obvious, can you confirm the following:
Thanks @umer.nalla I was using username instead of machine ID, I am able to connect to cloud now.
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>'
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" }