Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about "Failed to get JSON resource" #1

Closed
jzedu opened this issue Nov 14, 2020 · 1 comment
Closed

Question about "Failed to get JSON resource" #1

jzedu opened this issue Nov 14, 2020 · 1 comment

Comments

@jzedu
Copy link

jzedu commented Nov 14, 2020

Thanks so much for building this!

Right now, I have a problem where I am unable to get the JSON resource when I run this using hugo server. In particular I get the following error:

Start building sites …
ERROR 2020/11/14 02:48:35 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=0": 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 287 ms
Error: Error building site: logged 1 error(s)

Could you let me know where in your code you are making this request to instagram and how I can remove it? Thank you very much!

@rhnvrm
Copy link
Owner

rhnvrm commented Nov 14, 2020

My preliminary search points to the Instagram shortcut being deprecated, which I have used in the example site.

gohugoio/hugo#7879

I will remove and push to the repository ASAP.

Thanks for reporting!

@rhnvrm rhnvrm closed this as completed in aa574fd Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants