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

Handle timeouts #7

Open
vamsipavanmahesh opened this issue Dec 14, 2020 · 0 comments
Open

Handle timeouts #7

vamsipavanmahesh opened this issue Dec 14, 2020 · 0 comments

Comments

@vamsipavanmahesh
Copy link

vamsipavanmahesh commented Dec 14, 2020

We are facing timeouts when fetching media. Basically, FB is not responding to us even after 30 seconds, and Heroku kills the thread as it's long-running.

client = InstagramBasicDisplay::Client.new(auth_token: user.instagram_token)
response = client.media_feed

Can I send a PR to add this functionality? If so, do you prefer timeout to be an environment variable or an optional param?

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