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

Error "The Instagram feed did not return JSON data" #6

Open
aldrDev opened this issue Jun 5, 2020 · 1 comment
Open

Error "The Instagram feed did not return JSON data" #6

aldrDev opened this issue Jun 5, 2020 · 1 comment

Comments

@aldrDev
Copy link

aldrDev commented Jun 5, 2020

Hello, just wanted to report this issue I've been having recently - every build has been resulting in the plugin failing since updating to 0.2.5

11:56:32 AM: Error location
11:56:32 AM: In "onPreBuild" event in "netlify-plugin-add-instagram" from netlify.toml and package.json
11:56:32 AM: at onPreBuild (/node_modules/netlify-plugin-add-instagram/index.js:40:21)

While the plugin isn't working for me recently, I did also want to thank you for introducing a more graceful method of failing the plugin itself instead of the entire build, So far I am able to keep an older 'copy' of the instagram feed on the website by using the older JSON from when it did manage to build last week :)

@smarteamom
Copy link

I'm seeing the same issue.

FetchError: invalid json response body at https://www.instagram.com/accounts/login/?next=/myIGacct/%3F__a%3D1 reason: Unexpected token < in JSON at position 0

In "onPreBuild" event in "netlify-plugin-add-instagram" from netlify.toml and package.json at /opt/build/repo/node_modules/node-fetch/lib/index.js:272:32 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async onPreBuild (/opt/build/repo/node_modules/netlify-plugin-add-instagram/index.js:25:20) at async Object.run (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/plugins/child/run.js:18:3) at async handleEvent (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/plugins/child/main.js:38:38) at async process.<anonymous> (/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/plugins/ipc.js:97:9)

Error properties: { type: 'invalid-json' }

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