MichaelDeBoey/gatsby-remark-embedder

Instagram returns 400 response about deprecated oEmbed endpoint

teeaarbee opened this issue ยท 6 comments

  • 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:

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.

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

@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

I've put up a pull request to add @teeaarbee! ๐ŸŽ‰

๐ŸŽ‰ This issue has been resolved in version 4.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€