oorestisime / gatsby-source-instagram

Create nodes from instagram posts hashtags and profiles
https://gatsby-src-instagram.netlify.com/
MIT License
149 stars 53 forks source link

Error status Error: Request failed with status code 500 #189

Open cdennington opened 3 years ago

cdennington commented 3 years ago

When building the project with the Instagram plugin, I sometimes get the following error: Error status Error: Request failed with status code 500 image

I've check my access token which is valid and never expires: image

The plugin is included in Gatsby config like so: image

I'm using Gatsby 2, and the latest version of this plugin image

Not sure why the request would some times throw a 500 and other times it pulls in the Instagram feed as expected?

oorestisime commented 3 years ago

Hm, i might need to some debug to understand what is going on when there is such a failure. That said a 500 error would be hard to solve as i dont think there will be any information in it. pull requests welcome :)

cdennington commented 3 years ago

I took a look at this, looks like the issue is with the max posts attribute, I had this set to 1000, but when I set it to 100 the request works as expected.

The Instagram account being used has over 1000 posts, so I assume this is a limitation in the API, and probably needs closer inspection.

On Sun, Mar 28, 2021 at 4:27 AM Orestis Ioannou @.***> wrote:

Hm, i might need to some debug to understand what is going on when there is such a failure. That said a 500 error would be hard to solve as i dont think there will be any information in it. pull requests welcome :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/oorestisime/gatsby-source-instagram/issues/189#issuecomment-808766046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIQAVMQIJMGVUVCDE6DK6LTFYIRDANCNFSM4ZWDU6XQ .