Skip to content

Handle timeouts #7

@vamsipavanmahesh

Description

@vamsipavanmahesh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions