question

Upvotes
Accepted
7 3 5 5

Cannot login to RTO

I have just received RTO machineID account. I set password and created AppKey. However, when I tried to login, there is an error. I am not sure what is the reason. Can you please help me? Thank you. I use CPP Real Time SDK on Linux environment.

1631688353.png


elektronrefinitiv-realtimeelektron-sdkrrtema-apic++
1631688353.png (30.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
24.5k 86 10 22

Hi @Xueying

As per our offline conversation;

Looking at the source code for our API (rsslRestClientImpl.c), the text ‘Error: Failed to set CURL options with text’ is from our API and the following ‘an unknown option was passed in to libcurl’ is coming from the Curl library.

You can also google ‘an unknown option was passed in to libcurl’ to find possible solutions to your curl library issue.

I can confirm I have tested your credentials with both a Windows and Linux version of Cons113 and with a Python script and all 3 instances are able to login to the server.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you. It turns out to be some problem with curl library. I did not use the right version of libcurl.

Upvotes
24.5k 86 10 22

Hi @Xueying

Please try the following and post any error response here - do NOT post MachineID, Password, AppKey or any Access token here.

curl --location --request POST 'https://api.refinitiv.com/auth/oauth2/v1/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer ' \
--data-urlencode 'username=<Machine ID>' \
--data-urlencode 'password=<Password>' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=trapi' \
--data-urlencode 'takeExclusiveSignOnControl=true' \
--data-urlencode 'client_id=<App Key>'


Also, please confirm which EMA CPP example you are running? Are you following the QuickStart steps?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I used the same program for RTO Trial months ago and I only changed credentials now, so I think there should not be any problem regarding to the code.

Hi @Xueying

By New Credential, do you mean a new MachineID?

If so, did you set a new password for your new machineID?

Yes, it is a new machine ID and I set new password for it.

Upvotes
24.5k 86 10 22

Hi @Xueying

Please note the similar error message from another user was as a result of the executable not being able to locate the OpenSLL and curl libraries at runtime - Help running the consumer example - Forum | Refinitiv Developer Community

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
24.5k 86 10 22

Hi @Xueying

For Proxy related issues, you would need to seek assistance from your internal network/security team - who can also interact with our RTO team via the helpdesk.

Can you confirm your MachineID looks something like GE-A-01234567-8-9101 and the password, is the long password set using the link in the Welcome email (that also contained the above MachineID)?

The above error indicates you are using an incorrect username and/or password

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
24.5k 86 10 22

Hi @Xueying

I have tried your machineID and password with the Cons113 example and I am able to connect and consume data.

Therefore, the issue is likely to be a local configuration issue or an application issue.

Please test with Cons113 as suggested earlier and confirm the credentials are valid.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
7 3 5 5

Hi @umer.nalla ,

Now I use a new machine and when I do cmake in the SDK , there is some error. Could you please help to see what is the problem? Thank you.


Prebuilt libraries not found: librssl_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: librssl_shared_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: librsslJsonConverter_shared_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: librsslVA_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: librsslVA_shared_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: libansi_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Eta/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: libema_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Ema/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Ema/Libs/LIN3_64_GCC485/Optimized

Prebuilt libraries not found: libema_shared_LIBRARY_OPTIMIZED-NOTFOUND, in

/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Ema/Libs/LIN3_64_GNU485/Optimized;/app/qsg/pretrade/Real-Time-SDK-2.0.2.L1.linux/setup/RTSDK-2.0.2.L1.linux.rrg/Cpp-C/Ema/Libs/LIN3_64_GCC485/Optimized

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
47.2k 109 44 60

@Xueying

Have you installed the lsb-core package?

yum -y install redhat-lsb-core.x86_64 openssl-devel

It uses the lsb_release command to find the linux distribution.

pic1.png

According to the API compatibility matrix, EMA C++ supports the following operating systems.

It has the libraries for the following operating systems and compilers.

pic2.png


pic2.png (10.5 KiB)
pic1.png (45.3 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
24.5k 86 10 22

Hi @Xueying

I am not a Linux expert - as well as my colleague's suggestion, you can refer to the RT-SDK Build notes here and here.

You may also find my following article of some help Coding & Testing Linux Applications on Windows using WSL & VS Code | Refinitiv Developers


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.