Hugo-theme-zzo: Cannot build site because of Instagram shortcode - "This endpoint is deprecated"

Created on 29 Oct 2020  Â·  2Comments  Â·  Source: zzossig/hugo-theme-zzo

Hello Everyone!

I'm working on a static site and I've chosen Hugo with the zzo theme. I'm running into an issue: the site fails to build, because an Instagram post is unavailable with the generated URL.

The Instagram resource is available: https://www.instagram.com/p/BGvuInzyFAe/
but not with this URL: https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true

Error from API:

This endpoint is deprecated. Please read https://developers.facebook.com/docs/instagram/oembed to learn how to migrate your endpoint.

Full from gitlab builder:

Submodule 'themes/zzo' (https://github.com/zzossig/hugo-theme-zzo.git) registered for path 'themes/zzo'
20 Cloning into '/builds/tangodelta/hugo-poc-website-3/themes/zzo'...
21 Submodule path 'themes/zzo': checked out 'e09bbc6d4e7cd88ca327b74bd855794c246ebc36'
22 Entering 'themes/zzo'
24
Executing "step_script" stage of the job script
00:02
25 $ hugo
26 Start building sites … 
27 ERROR 2020/10/29 13:12:51 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true": Failed to retrieve remote file: Bad Request
28 Total in 1333 ms
29 Error: Error building site: logged 1 error(s)
31
Cleaning up file based variables
00:01
33 ERROR: Job failed: exit code 255

This is similar to this issue: https://github.com/zzossig/hugo-theme-zzo/issues/239

When I remove the shortcode, the site builds.

File affected:

content/en/posts/rich-content.md

Most helpful comment

All 2 comments

Ooooh! OK. Thank you for the info!

Was this page helpful?
0 / 5 - 0 ratings