-
Notifications
You must be signed in to change notification settings - Fork 800
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
Catchable fatal error Object of class stdClass #95
Comments
i have the same error here #76 |
Thank you for raising issue I will check it soon |
Hello, |
Ok I found the reason. The Instagram log out my account. When I log in via Instagram website. Api start working. |
I found "Object of class stdClass could not be converted to string" in exception will not throw to cast, it crash process and exit. throw new InstagramException('Response code is ' . $response->code . '. Body: ' . var_dump($response->body) . ' Something went wrong. Please report issue.'); Will not throw to catch InstagramException, it will exit. |
Catchable fatal error: Object of class stdClass could not be converted to string
\InstagramScraper\Instagram.php on line 529
require('autoload.php');
use InstagramScraper\Instagram;
Unirest\Request::verifyPeer(false);
$instagram = Instagram::withCredentials('username', 'password', '/cached');
$instagram->login();
$account = $instagram->getMediaById(1448575070213480221);
echo json_encode($account);
The text was updated successfully, but these errors were encountered: