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

Instagram returns 400 response about deprecated oEmbed endpoint #147

Closed
teeaarbee opened this issue Oct 18, 2020 · 6 comments · Fixed by #148
Closed

Instagram returns 400 response about deprecated oEmbed endpoint #147

teeaarbee opened this issue Oct 18, 2020 · 6 comments · Fixed by #148
Labels
🐛 Bug Something isn't working ⚙️ Instagram Issue or pull request regarding Instagram released

Comments

@teeaarbee
Copy link

  • gatsby-remark-embedder version: "^3.0.0"
  • node version: v10.16.2
  • npm (or yarn) version: 6.9.0

Relevant code or config

What you did:

What happened:

https://i.postimg.cc/sf8xKRkD/screenshot-2020-10-18.png
image

Reproduction repository:
NA

Problem description:
Unable to use instagram links

The following error appeared while processing 'https://www.instagram.com/p/CGMMB_4HZgi/':
Request to https://api.instagram.com/oembed?url=https://www.instagram.com/p/CGMMB_4HZgi/&omitscript=true returned non-OK status (400)

Suggested solution:

@MichaelDeBoey
Copy link
Owner

Hi @teeaarbee! 👋

Can you please try without the trailing slash and see if that works?
I'm currently not at my computer to try it out myself.

@teeaarbee
Copy link
Author

Hi @MichaelDeBoey i did but still the same error, meanwhile I was looking at that error message and felt may be somethings wrong with the api response from IG and I see this on fb developers page:

image

The error code i see is 400 and the same status code mentioned in fb site

Is this something responsible for the error I see?
https://developers.facebook.com/docs/instagram/oembed

@MichaelDeBoey
Copy link
Owner

@teeaarbee It's weird that the endpoint is throwing 400 responses since the endpoint isn't deprecated (yet).
Although we should support the new API asap.

@MichaelDeBoey MichaelDeBoey changed the title Deploy is getting failed on vercel Instagram returns 400 response about deprecated oEmbed endpoint Oct 19, 2020
@MichaelDeBoey MichaelDeBoey added 🐛 Bug Something isn't working ⚙️ Instagram Issue or pull request regarding Instagram and removed needs more info labels Oct 19, 2020
@MichaelDeBoey
Copy link
Owner

@all-contributors Please add @teeaarbee for bug

@allcontributors
Copy link
Contributor

@MichaelDeBoey

I've put up a pull request to add @teeaarbee! 🎉

@MichaelDeBoey
Copy link
Owner

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working ⚙️ Instagram Issue or pull request regarding Instagram released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants