question

Upvotes
Accepted
1 0 2 2

EMA API Having SSL Connect Error After Server Migrate

Application resided in cloud server had encountered "SSL connect error" exception recently. Please provide advices or suggestions why this might happen.

Below is a snip shot of the error in our log file.


Thank you in advance.

elektronrefinitiv-realtimeelektron-sdkrrtema-apic++ssl
1620266834265.png (24.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
Accepted
56k 145 45 65

@Kia Wai

From my checking, the "SSL connection error" is too generic to identify the problem.

However, the error message indicates that the problem happens when requesting an authentication token.

EMA uses libcurl to send HTTP requests. Therefore, I think you can use the following curl command on that machine to verify the problem.

curl -X POST "https://api.refinitiv.com/auth/oauth2/v1/token" -H  "accept: application/json" -H  "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&username=<machineID>&password=<password>&client_id=<clientID>&takeExclusiveSignOnControl=true"

Please change <machineID>, <password>, and <clientID> to your machine ID, password, and client ID.

If the issue also occurs with the curl command, it could be a problem in the machine's settings.



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
1 0 2 2

Hi @jirapongse.phuriphanvichai, sorry for late reply.


curl is not installed in this server. The program uses libcurl within the same folder, which works in another server (same libcurl, same credential).


Below is a screenshot of log recorded using RestLogEnable in EmaConfig.


We had opened port 443 in firewall to connect to api.refinitiv.com via private link. Is port 80 needed to be opened as well ?


Feel free to ask if you need more information regarding this issue.


restlog.jpg (44.7 KiB)
1621306172719.png (10.5 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.

@Kia Wai

What is the version of EMA you are using?

If it is old, please upgrade it to the latest version. The latest version is Real-Time-SDK-2.0.2.L1.