Instagram shortcode broken?

Hi,

today, I added some content to my page and got an error indicating that the instagram shortcodes are broken (since all worked well before and now without adding anything new which is instagram-related). I’m getting the following error when building the site:

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

This message pops up as many times as I use the shortcode in my posts.

This is sample content by the way. When I open the url mentioned above and the corresponding instagram post, I don’t get any errors. This problem is totally new for me. Did anyone else experience similar behaviour? Do you have any idea about its cause?

Thanks!

$ hugo env
Hugo Static Site Generator v0.77.0/extended windows/amd64 BuildDate: unknown
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.15.1"

$ hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-future-imperfect-slim -D -F --navigateToChanged --verbose
port 4321 already in use, attempting to use an available port
INFO 2020/11/01 13:03:18 Using config file:
Start building sites …
INFO 2020/11/01 13:03:18 syncing static files to ...
INFO 2020/11/01 13:03:18 Downloading: https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true ...
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
ERROR 2020/11/01 13:03:19 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
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["error-remote-getjson"]
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
WARN 2020/11/01 13:03:19 Failed to get translated string for language "en" and ID "reading_time": message "reading_time" has no plural form "one"
INFO 2020/11/01 13:03:19 Downloading: https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&maxwidth=640&omitscript=true ...
ERROR 2020/11/01 13:03:19 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
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["error-remote-getjson"]
Built in 480 ms
Error: Error building site: logged 2 error(s)
1 Like

Hello @bth,

have a look at the Github issue linked below for more information and a possible fix:

2 Likes

Wow.

Thanks a lot for the quick reply!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.