Skip to content

Failed to connect to server when query data from etherscan with client example in SGX_Linux. #239

@binwang-neu

Description

@binwang-neu

Hello, I'm trying to query data from server using the client example in SGX_Linux. But occurs a problem: Failed to connect to server.

I modified the client-tls.c file in three places:

  1. #define SERV_PORT 80
  2. char sendBuffer[] = "GET /api?module=account&action=balance&address=0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a&tag=latest&apikey=YourApiKeyToken";
  3. if (net_pton(AF_INET, "23.111.175.138", &servAddr.sin_addr))

And the error code is -326
VERSION_ERROR = -326, /* record layer version error */

Is there some setting somewhere I'm missing?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions