Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL certificate #63

Closed
hasandahsin opened this issue Feb 21, 2017 · 6 comments
Closed

SSL certificate #63

hasandahsin opened this issue Feb 21, 2017 · 6 comments

Comments

@hasandahsin
Copy link

Here is the error.

"

Uncaught exception 'Unirest\Exception' with message 'SSL certificate problem: unable to get local issuer certificate' in C:\xampp\htdocs\insta\vendor\mashape\unirest-php\src\Unirest\Request.php:476 Stack trace: #0 C:\xampp\htdocs\insta\vendor\mashape\unirest-php\src\Unirest\Request.php(236): Unirest\Request::send('GET', 'https://www.ins...', NULL, Array, NULL, NULL) #1 C:\xampp\htdocs\insta\vendor\raiym\instagram-php-scraper\src\InstagramScraper\Instagram.php(272): Unirest\Request::get('https://www.ins...') #2 C:\xampp\htdocs\insta\dene\index.php(7): InstagramScraper\Instagram::searchAccountsByUsername('theellenshow') #3 {main} thrown in C:\xampp\htdocs\insta\vendor\mashape\unirest-php\src\Unirest\Request.php on line 476

"

@raiym
Copy link
Member

raiym commented Feb 23, 2017

@hasandahsin could you provide steps to reproduce this issue?
Thank you

@danielmarkavis
Copy link

I have just installed this package, and receive the same error.

It stops (for me) on

$medias = Instagram::getMedias('mikeescamilla', 10);

@danielmarkavis
Copy link

Adding

Unirest\Request::verifyPeer(false);

before

use InstagramScraper\Instagram;

fixes this

@pinotarantino
Copy link

Hello,
I tried the solution proposed by danielmarkavis , but after some good results with 'getMediasByTag', I get the following error message:
"Fatal error: Uncaught exception 'Unirest\Exception' with message 'Unknown SSL protocol error in connection to www.instagram.com:443 ' in C:\Users\Administrator\vendor\mashape\unirest-php\src\Unirest\Request.php on line 476"
Unirest\Exception: Unknown SSL protocol error in connection to www.instagram.com:443 in C:\Users\Administrator\vendor\mashape\unirest-php\src\Unirest\Request.php on line 476

@pinotarantino
Copy link

Add: the problem seems occur in sporadic way...just made another query and all is gone fine, without error message...thanks a lot for you attention...;)

@pinotarantino
Copy link

The problem is solved if I make a call from a Linux/Lamp server...problem persist only on Wamp environment

@raiym raiym closed this as completed Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants