Help running the consumer example
So I’ve completed these steps successfully:
- I have built the electron libraries
- I have built the consumer example program
Locate reference : ./Elektron-SDK-1.4.0.L1.linux/setup/Elektron-SDK-1.4.0.L1.linux.rrg/Cpp-C/Ema/Examples/Training/Consumer/100_Series/100__MarketPrice__Streaming/Consumer.h
- I have created a password for our machine id in our UAT environment
- I run the executable from the directory where the EmaConfig.xml from the example code is located
Upon running the code, which subscribes to IBM.N on serviceName ELEKTRON_DD with consumerName Consumer_3
I get the following error:
[New Thread 0x7ffff5798700 (LWP 5163)]
loggerMsg
TimeStamp: 09:00:04.480
ClientName: ChannelCallbackClient
Severity: Error
Text: Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_3
Instance Name Consumer_3_1
RsslReactor 0x0xd39b50
RsslChannel 0
Error Id -1
Internal sysError 0
Error Location /local/jenkins/workspace/ESDKCore_RCDEV/OS/RH6-64/rcdev/source/esdk/Cpp-C/Eta/Impl/Reactor/rsslReactor.c:5809
Error Text Failed to request authentication token information. Text: </local/jenkins/workspace/ESDKCore_RCDEV/OS/RH6-64/rcdev/source/esdk/Cpp-C/Eta/Impl/Rea\
ctor/Util/rsslRestClientImpl.c:1520> Error: Failed to set CURL options with text: Failed initialization
loggerMsgEnd
[Thread 0x7ffff5798700 (LWP 5163) exited]
I can supply the source code, but it’s the same as the example. Is it possible to get some help in figuring out what this error message means? Could it be that i'm not providing proxy information?
Best Answer
-
Hello all,
The investigation was consequently taken offline.
After both OpenSSL and curl libraries were found at runtime,
the encrypted channel consumer example runs properly.
0
Answers
-
Also my version of curl is
Also as it seems there’s a curl issue: this I my version
[devalgony02:~/3rdparty/Elektron/setup/Elektron-SDK-1.4.0.L1.linux.rrg/Cpp-C/Ema/Examples/Training/Consumer/100_Series/113__MarketPrice__SessionManagement] curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
0 -
Not sure that what version of Linux you currently use?
Can you copy libcurl.so from "[ESDK Install Path]/installdb/RHEL6_64_GCC444/Optimized /lib64/" to running directory? and then test the issue again.0 -
Also please make sure that you already set LD_LIBRARY_PATH to the folder which contains libcurl.so
It looks like the example build with optimized lib so you have to export the PATH to Optimized folder as mentioned in this tutorial
export LD_LIBRARY_PATH=<ESDK root>/installdb/RHEL6_64_GCC444/Optimized/lib640 -
That helped, libcurl seems to be working...
Now i get this error, i and using the machine id as the username, the password i set on the web
as the password. what should the client id be?
[Thread 0x7ffff3c61700 (LWP 19141) exited]
loggerMsg
TimeStamp: 08:02:38.669
ClientName: ChannelCallbackClient
Severity: Error
Text: Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_3
Instance Name Consumer_3_1
RsslReactor 0x0xd39b50
RsslChannel 0
Error Id -1
Internal sysError 0
Error Location /local/jenkins/workspace/ESDKCore_RCDEV/OS/RH6-64/rcdev/source/esdk/Cpp-C/Eta/Impl/Reactor/rsslReactor.c:5789
Error Text Failed to request authentication token information with HTTP error 401. Text: {"error":"invalid_client" ,"error_description":"Invalid Applicatio\
n Credential." }
loggerMsgEnd
[Thread 0x7ffff5798700 (LWP 19140) exited]
0 -
Hello @epfeuffer,
You should only need to pass into example 113
-username ( machineid, should look like "GE..." )
-password (the very long password you setup yourself)
no additional client id is required.
Please read more details in EMA Quick Start - Connecting to Elektron Real Time in Cloud
Because it appears something is invalid about the reds you are passing, please verify if what you are passing is username and password is as expected?
(There is an email-based username and the corresponding short password, these are not the right parameters to pass into example)
0 -
i've taken the client id out and get this
loggerMsg
TimeStamp: 12:48:34.302
ClientName: ChannelCallbackClient
Severity: Error
Text: Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_3
Instance Name Consumer_3_1
RsslReactor 0x0x1434b50
RsslChannel 0
Error Id -22
Internal sysError 0
Error Location /local/jenkins/workspace/ESDKCore_RCDEV/OS/RH6-64/rcdev/source/esdk/Cpp-C/Eta/Impl/Reactor/rsslReactor.c:4844
Error Text Failed to copy OAuth credential for enabling the session management; OAuth Client ID does not exist.
loggerMsgEnd
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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛