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


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.

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?

  • 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

  • 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&gt;


    <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&amp;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>


  • 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

    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

  • 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.

  • 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.

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

  • 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

  • @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

  • 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