question

Upvotes
Accepted
1 1 3 3

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-sdkema-apirrtc++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.

@Kia Wai

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


Upvotes
Accepted
78.8k 250 52 74

@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 1 3 3

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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