Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

BUG: Failed to get JSON resource - API.instagram Bad request #205

Closed
Hugo-prod opened this issue Nov 7, 2020 · 4 comments
Closed

BUG: Failed to get JSON resource - API.instagram Bad request #205

Hugo-prod opened this issue Nov 7, 2020 · 4 comments

Comments

@Hugo-prod
Copy link

Bug Report

Hello :)

Describe the bug

When i run Hugo i get this error

ERROR 2020/11/07 23:47:42 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

Screenshots

image

Environment

  • Hugo Version: Hugo Static Site Generator v0.77.0/extended linux/amd64 BuildDate: 2020-10-31T12:31:06Z

In my case, no need Instagram, so i disable ERROR with ignoreErrors = ["error-remote-getjson"]
But how to repair this error properly ?

@pacollins
Copy link
Owner

pacollins commented Nov 8, 2020 via email

@pedrohbraga
Copy link

Hi! I have also been getting the same error, which I have only been able to bypass by including ignoreErrors = ["error-remote-getjson"] within the first part of the config.toml file.

Hugo Version: Hugo Static Site Generator v0.79.0/extended windows/amd64 BuildDate: unknown

@pacollins
Copy link
Owner

pacollins commented Dec 2, 2020

I will work on trying to reproduce this tonight - been swamped with life. 😄

@pacollins
Copy link
Owner

pacollins commented Dec 3, 2020

I was correct, it is a Hugo issue. Removing the Instagram short codes from the example site solve the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants