Instagram Embeds Broke My Hugo Build After the oEmbed API Shutdown
Failed to retrieve remote file: Bad Request
Recently, after fixing Hugo settings or creating and editing articles, the build started failing and I could no longer update the site.
Symptoms Failed to get JSON resource “https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInxxxx/&maxwidth=640&omitscript=true" : Failed to retrieve remote file: Bad Request
Looking at the deploy log, Failed was displayed at the Instagram API part and the build was being aborted.
It seems that in Hugo, when an instagram shortcode is inserted, the build now fails.
[Read More]