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.
Best Answer
-
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.
0
Answers
-
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?
0 -
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
0 -
Hi, @umer.nalla , this is the response. BTW, I used Proxy when connecting to RTO.
{"error":"access_denied" ,"error_description":"Invalid username or password." } <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">;
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2016 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--
/*
* Copyright (C) 1996-2016 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
/*
Stylesheet for Squid Error pages
Adapted from design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
/* Page basics */
* {
font-family: verdana, sans-serif;
}
html body {
margin: 0;
padding: 0;
background: #efefef;
font-size: 12px;
color: #1e1e1e;
}
/* Page displayed title area */
#titles {
margin-left: 15px;
padding: 10px;
padding-left: 100px;
background: url('/squid-internal-static/icons/SN.png') no-repeat left;
}
/* initial title */
#titles h1 {
color: #000000;
}
#titles h2 {
color: #000000;
}
/* special event: FTP success page titles */
#titles ftpsuccess {
background-color:#00ff00;
width:100%;
}
/* Page displayed body content area */
#content {
padding: 10px;
background: #ffffff;
}
/* General text */
p {
}
/* error brief description */
#error p {
}
/* some data which may have caused the problem */
#data {
}
/* the error message received from the system or other software */
#sysmsg {
}
pre {
font-family:sans-serif;
}
/* special event: FTP / Gopher directory listing */
#dirmsg {
font-family: courier;
color: black;
font-size: 10pt;
}
#dirlisting {
margin-left: 2%;
margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
border-bottom: groove;
}
#dirlisting td.size {
width: 50px;
text-align: right;
padding-right: 5px;
}
/* horizontal lines */
hr {
margin: 0;
}
/* page displayed footer area */
#footer {
font-size: 9px;
padding-left: 10px;
}
body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
:lang(he) { direction: rtl; }
--></style>
</head><body id=ERR_DNS_FAIL>
<div id="titles">
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
</div>
<hr>
<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="http://password=******/">http://password=****/</a></p>
<blockquote id="error">
<p><b>Unable to determine IP address from host name <q>password=*****</q></b></p>
</blockquote>
<p>The DNS server returned:</p>
<blockquote id="data">
<pre>Name Error: The domain name does not exist.</pre>
</blockquote>
<p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>
<p>Your cache administrator is <a href="mailto:root?subject=CacheErrorInfo%20-%20ERR_DNS_FAIL&body=CacheHost%3A%20vnvaldtlproxy1%0D%0AErrPage%3A%20ERR_DNS_FAIL%0D%0AErr%3A%20%5Bnone%5D%0D%0ADNS%20ErrMsg%3A%20Name%20Error%3A%20The%20domain%20name%20does%20not%20exist.%0D%0ATimeStamp%3A%20Wed,%2015%20Sep%202021%2006%3A56%3A57%20GMT%0D%0A%0D%0AClientIP%3A%2010.240.148.7%0D%0A%0D%0AHTTP%20Request%3A%0D%0APOST%20%2F%20HTTP%2F1.1%0AUser-Agent%3A%20curl%2F7.29.0%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AContent-Type%3A%20application%2Fx-www-form-urlencoded%0D%0AAuthorization%3A%20Bearer%0D%0AContent-Length%3A%20158%0D%0AHost%3A%20password%3D*******%0D%0A%0D%0A%0D%0A">root</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated Wed, 15 Sep 2021 06:56:57 GMT by vnvaldtlproxy1 (squid/3.5.20)</p>
<!-- ERR_DNS_FAIL -->
</div>
</body></html>
0 -
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.
0 -
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
0 -
Hi @Xueying
By New Credential, do you mean a new MachineID?
If so, did you set a new password for your new machineID?
0 -
Yes, it is a new machine ID and I set new password for it.
0 -
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.
0 -
Thank you. It turns out to be some problem with curl library. I did not use the right version of libcurl.
0 -
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
0 -
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.
According to the API compatibility matrix, EMA C++ supports the following operating systems.
It has the libraries for the following operating systems and compilers.
0 -
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
0
Categories
- All Categories
- 6 AHS
- 37 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 中文论坛