Closed wdda closed 1 year ago
@wdda Facing the same issue on the production. Would you please share something about how to resolve it?
@tanjed
I specified the proxy settings incorrectly:
$guzzle = new Client(['https://scraperapi:secret@proxy-server.scraperapi.com:8001']);
Correct settings:
$guzzle = new Client(['proxy' => 'https://scraperapi:secret@proxy-server.scraperapi.com:8001']);
But it didn't help, I started getting 403 error like here: https://github.com/postaddictme/instagram-php-scraper/issues/1099
Even on a local server, without a proxy. Until a week ago, everything was working well.
@wdda Followed the same settings but got Response code is 403: Forbidden.Something went wrong. Please report issue
Here is the code :
$guzzle = new Client(['proxy' => 'http://scraperapi:'. $scraperApiSecret .'@proxy-server.scraperapi.com:8001','verify' => false]);
$instagram = \InstagramScraper\Instagram::withCredentials($guzzle,$userName, $password,new Psr16Adapter('Files'));
$instagram->login(true);
Hello! When I use the library on the local docker server everything works fine, but on the VPS I get an error when trying to get a profile. Using a proxy didn't help. The login method cannot establish the correct session. Instagram returns an empty "Set-Cookie" parameter in the headers.
dd($headers, $response);
On the local server (docker):
In production (VPS):
It's been several days without results. Thank you for any help.