seegno / uphold-sdk-php

Uphold PHP SDK
http://seegno.com
28 stars 24 forks source link

cURL error 35: SSL connect error #130

Closed zekylaf closed 8 years ago

zekylaf commented 8 years ago

Hi, I need help please! I am getting this error and I don't know how to solve it. Thanks

in ErrorHandler.php line 49 at ErrorHandler->onException(object(ConnectException)) in HttpClient.php line 142 at HttpClient->request('v0/me', null, 'GET', array('Accept' => 'application/json', 'Content-Type' => 'application/json', 'User-Agent' => 'uphold-sdk-php v4.0.3 (https://github.com/seegno/uphold-sdk-php)', 'Authorization' => 'Bearer '), array('query' => array())) in HttpClient.php line 87 at HttpClient->get('v0/me', array(), array('Accept' => 'application/json', 'Content-Type' => 'application/json', 'User-Agent' => 'uphold-sdk-php v4.0.3 (https://github.com/seegno/uphold-sdk-php)', 'Authorization' => 'Bearer ')) in UpholdClient.php line 313 at UpholdClient->get('/me') in UpholdClient.php line 228

nunorafaelrocha commented 8 years ago

@zekylaf Attention! Don't publish your personal access token! People can access your Uphold account with that. I've edit your comment and remove the token, but someone may already have stolen your access token.

You need to revoke it!

About your question, that seems a connection problem. Have you check this issue #124?

zekylaf commented 8 years ago

Thanks for answer @nunorafaelrocha! And thanks for edit my post too. I am going to revoke the access token

I saw yesterday the issue that you are telling me. I make all the steps that your link says, but the problem persist.

I want to ask you if you know any way to disable the SSL check from uphold-sdk. I think that this is a Guzzle problem.

Please, I need to solve this, thanks you

nunorafaelrocha commented 8 years ago

@zekylaf First I would recommend you try a curl request from your terminal to ensure connection to Uphold's API using this command:

curl "https://api.uphold.com/v0/me" \
  -H "Authorization: Bearer <token>"

Second, I would verify the PHP configuration as described in this article.

zekylaf commented 8 years ago

Hi @nunorafaelrocha. I solved the problem. I have an old version called "Bitreserve-sdk-php" that I have used time ago to connect my app with Uphold and I never had problems with this version, so I replaced some files of the "4.0.3" version with those of the older version. Then I have changed the files' namespaces.

Finally, it starts working, without errors. If you like, I can upload all.

Thanks for the help

nunorafaelrocha commented 8 years ago

👍

Closing this issue then!

jorwan commented 6 years ago

This worked for me: yum update nss

Source: https://serverfault.com/a/642203