Kevin
Kevin

Reputation: 1122

R & RCurl: Error 54 in libcurl

I am trying to get some data in json format in using RCurl.

I have to use POST to enter the username and password such as:

postForm(url1, user=x$USERNAME, pass=x$PASSWORD)

I get the following error:

Error in function (type, msg, asError = TRUE)  : 

SSL read: error:00000000:lib(0):func(0):reason(0), errno 54

If I researched the correct error number 54 from the libcurl site:

CURLE_SSL_ENGINE_SETFAILED (54)

Failed setting the selected SSL crypto engine as default!

If this is the correct error how would I select the SSL engine?

Upvotes: 2

Views: 4954

Answers (1)

Daniel Stenberg
Daniel Stenberg

Reputation: 58004

Sorry, but the conclusion about this error is wrong. The output you see is from lib/ssluse.c in libcurl's source code and the "errno" mentioned there is not the libcurl error code but the actual errno variable at that time. I'm not sure what help we can get by knowing it, but 54 in my system equals EXFULL.

You should rather check the return code from the libcurl function that fails to get the proper libcurl error code but I guess you might see CURLE_RECV_ERROR simply because libcurl got tis SSL problem when receiving data.

Unfortunately that error string from openssl is not very helpful and I can't tell why you got it!

Upvotes: 8

Related Questions