Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by Bhimrao.Ghule · Jan 12 at 07:39 AM · ema

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 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'

People who like this

0 Show 2
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.

avatar image
REFINITIV
umer.nalla ♦♦ · Jan 12 at 08:14 AM 0
Share

Hi @Bhimrao.Ghule

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?

avatar image
Bhimrao.Ghule umer.nalla ♦♦ · Jan 12 at 08:20 AM 0
Share

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Jan 12 at 10:38 AM

Hi @Bhimrao.Ghule

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


Comment

People who like this

0 Show 1 · 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
Bhimrao.Ghule · Jan 12 at 12:27 PM 0
Share

Thanks @umer.nalla I was using username instead of machine ID, I am able to connect to cloud now.

avatar image
REFINITIV
Answer by wasin.waeosri · Jan 12 at 08:21 AM

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>'
Comment

People who like this

0 Show 1 · 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
Bhimrao.Ghule · Jan 12 at 10:23 AM 0
Share

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" }

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 >
11 People are following this question.

Related Questions

Will .NET EMA API available in near future?

Error using EMA with TREP

how to enable message tracing in EMA C++?

EMA - How do I use batch reissue and close

EMA CPP - Exception adding ric into OmmArray

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges