-
Notifications
You must be signed in to change notification settings - Fork 461
Open
Description
Hi there,
Thanks for this awesome gem. We are using Koala gem for fetching Instagram posts.
When requesting a higher limit of IG posts(limit: 500 above), we are getting Koala::Facebook::ServerError, however, we are not getting any errors when the limit is lower(limit: 300 below).
irb(main):015:0> MEDIA_FIELDS = %i[comments_count shortcode ig_id timestamp media_typelike_count media_url thumbnail_url username caption permalink].freeze
=> [:comments_count, :shortcode, :ig_id, :timestamp, :media_typelike_count, :media_url, :thumbnail_url, :username, :caption, :permalink]
irb(main):018:0> koala.get_connection(uid, 'media', fields: MEDIA_FIELDS, limit: 1000)
Traceback (most recent call last):
1: from (irb):18
Koala::Facebook::ServerError (type: OAuthException, code: 2, message: An unexpected error has occurred. Please retry your request later. [HTTP 500])
irb(main):019:0> koala.get_connection(uid, 'media', fields: MEDIA_FIELDS, limit: 200)
=> [{"comments_count"=>39, "shortcode"=>"CQ_5
However, when requesting in Graph API explorer with a limit of 1000, we see no errors. The Graph API Explorer is returning all 1000 IG posts.
We have been fetching the IG posts with a limit of 1000 last couple of years with Koala gem, but we are receiving this error last 3 days.
Could someone please look into the issue? Please let me know if you need additional information. Any help or suggestions would be much appreciated.
Thanks
Metadata
Metadata
Assignees
Labels
No labels