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

Empty reply from server #1114

Open
spapapan opened this issue Jan 21, 2023 · 0 comments
Open

Empty reply from server #1114

spapapan opened this issue Jan 21, 2023 · 0 comments

Comments

@spapapan
Copy link

I try to make a request with proxy:

$instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client());
$instagram::setProxy($proxySettings);
$account = $instagram->getAccount('kevin');

and I get this error:

Fatal error: Uncaught Unirest\Exception: Empty reply from server in .../vendor/mashape/unirest-php/src/Unirest/Request.php:476 Stack trace: #0 .../vendor/mashape/unirest-php/src/Unirest/Request.php(236): Unirest\Request::send('GET', 'https://www.ins...', NULL, Array, NULL, NULL) #1 .../vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(448): Unirest\Request::get('https://www.ins...', Array) #2 .../promoai/test.php(36): InstagramScraper\Instagram->getAccount('kevin') #3 {main} thrown in .../vendor/mashape/unirest-php/src/Unirest/Request.php on line 476

Any idea how to fix this? Is this library still working?

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

1 participant