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

Not working in production, working locally though? #622

Closed
bengrzybowski opened this issue Mar 15, 2020 · 3 comments
Closed

Not working in production, working locally though? #622

bengrzybowski opened this issue Mar 15, 2020 · 3 comments
Labels

Comments

@bengrzybowski
Copy link

I'm working on a feature to pull in most recent posts from an instagram account based on the username. The feature works great locally however displays the following error that claims the account doesn't exist? (the username is valid) The request is possibly being blocked by Instagram? Not sure...

Any direction or help would be awesome. thanks.

Fatal error
: Uncaught InstagramScraper\Exception\InstagramNotFoundException: Account with this username does not exist in /home4/bengrzybow/skinny.bgrzdesigns.com/wp-content/themes/understrap/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:353 Stack trace: #0 /home4/bengrzybow/skinny.bgrzdesigns.com/wp-content/themes/understrap/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(328): InstagramScraper\Instagram->getAccount('skinnybuddhatat...') #1 /home4/bengrzybow/skinny.bgrzdesigns.com/wp-content/themes/understrap/front-page.php(144): InstagramScraper\Instagram->getMedias('skinnybuddhatat...') #2 /home4/bengrzybow/skinny.bgrzdesigns.com/wp-content/themes/understrap/front-page.php(165): instagram_content('skinnybuddhatat...') #3 /home4/bengrzybow/skinny.bgrzdesigns.com/wp-includes/template-loader.php(98): include('/home4/bengrzyb...') #4 /home4/bengrzybow/skinny.bgrzdesigns.com/wp-blog-header.php(19): require_once('/home4/bengrzyb...') #5 /home4/bengrzybow/skinny.bgrzdesigns.com/in in
/home4/bengrzybow/skinny.bgrzdesigns.com/wp-content/themes/understrap/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php
on line
353

@retrowaver
Copy link
Contributor

Yes, the request could be blocked by Instagram (possibly by IP).

Also the incorrect exception type (InstagramNotFoundException) was a bug fixed in #592. Update to the latest version and you should see InstagramException with response code / body.

@nam-co
Copy link

nam-co commented Mar 19, 2020

Dows any body know what's the limit rate by instagram? and if its the same when we use the api with app id? thanks

@stale
Copy link

stale bot commented May 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 15, 2020
@stale stale bot closed this as completed May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants