Hi. I'm updating our VA Consumer application to connect to RTO. I'm following the example VAConsumer code in the RTSDK - here.
I can run the RTSDK VAConsumer example and connect and get data so I know I have connectivity and the right credentials etc.
But my application keeps failing with this log
Failed to request authentication token information. Text: </home/build/workspace/Refinitiv-Poller-Build-EL6/Elektron-SDK/Cpp-C/Eta/Impl/Reactor/Util/rsslRestClientImpl.c:1521> Error: Failed to set CURL options with text: Failed initialization)
I set up my application to create a Rest log and I get this ( I've hidden credential info but it's the same as I use when I run the example )
REST log redirected to file.
--- REST REQUEST ---
<!-- Time: 13:28:22:252 -->
URL: https://api.refinitiv.com/auth/oauth2/v1/token
HTTP method POST
HTTP header data:
Accept : application/json
Content-Type : application/x-www-form-urlencoded
HTTP body data: grant_type=password&username=GE-A-XXXXXXXX&client_id=XXXXXXXXXXX&scope=trapi.streaming.pricing.read&takeExclusiveSignOnControl=true
Request timeout: 90
--- REST RESPONSE ---
<!-- Time: 13:28:22:252 -->
HTTP header data:
HTTP body data: (null)
Protocol version: (null)
HTTP status code: 0
I've set up curl using libcurl.so that comes with the RTDSDK
initOpts.jitOpts.libcurlName = "/home/andys/clones/Real-Time-SDK/buildDir/install/lib64/libcurl.so";
I know this libcurl.so should work because to get the example app to work I set LD_LIBRARY_PATH to include the path to that library to get it to work.
Any ideas what could be going wrong ? I've gone through the example line by line and I'm pretty sure I have the same setup but I must be doing something differently.