Comments (7)
Released 0.5.1 and this should be fixed. thanks for the patience and the logs and thanks to @brianjd for finding the direction for the fix
from gatsby-source-instagram.
Hey folks please bear with me a few hours. currently at work and can't look at this. I ll be able to fix this as soon as i get home!
from gatsby-source-instagram.
I can confirm this, since I am having same issue this morning. And config & setup I have, was working correctly up till today.
from gatsby-source-instagram.
I have the same problem as @pascal-kubrick tells. It always worked fine, and today, without anything
changed it broke.
The error:
error (node:40510) DeprecationWarning: Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.
my node setup:
{
"name": "gatsby-starter-default",
"private": true,
"description": "A simple starter to get up and developing quickly with Gatsby",
"version": "0.1.0",
"author": "Kyle Mathews <[email protected]>",
"dependencies": {
"gatsby": "^2.3.3",
"gatsby-image": "^2.0.35",
"gatsby-plugin-google-analytics": "^2.0.18",
"gatsby-plugin-google-tagmanager": "^2.0.13",
"gatsby-plugin-manifest": "^2.0.25",
"gatsby-plugin-offline": "^2.0.25",
"gatsby-plugin-react-helmet": "^3.0.11",
"gatsby-plugin-sass": "^2.0.11",
"gatsby-plugin-sharp": "^2.0.34",
"gatsby-source-filesystem": "^2.0.28",
"gatsby-source-instagram": "^0.4.0",
"gatsby-source-prismic": "^2.3.0-alpha.3",
"gatsby-transformer-sharp": "^2.1.18",
"node-sass": "^4.11.0",
"normalize.css": "^8.0.1",
"prop-types": "^15.7.2",
"react": "^16.8.5",
"react-accessible-accordion": "^3.0.0",
"react-anchor-link-smooth-scroll": "^1.0.12",
"react-cookie-consent": "^2.3.0",
"react-dom": "^16.8.5",
"react-helmet": "^5.2.0",
"react-media": "^1.9.2",
"react-youtube": "^7.9.0"
},
"devDependencies": {
"prettier": "^1.16.4"
},
"keywords": [
"gatsby"
],
"license": "MIT",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write src/**/*.{js,jsx}",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}
from gatsby-source-instagram.
I can confirm that in the last 24 hours scraping is broken.
It's still fetching some data, but this function:
const parseResponse = response => {
const $ = cheerio.load(response.data);
const jsonData = $(`html > body > script`)
.get(0)
.children[0].data.replace(/window\._sharedData\s?=\s?{/, `{`)
.replace(/;$/g, ``);
return JSON.parse(jsonData).entry_data;
};
is broken now. My guess would be same as yours @pascal-kubrick, the API/Markup has changed.
from gatsby-source-instagram.
So there is a PR kind of fixing the issue #40 but it seems that dependeng on the profile i don't always the get the application/ld+json
which means probably not all of their instances are updates.
from gatsby-source-instagram.
Could be related, but I'm getting:
Error: RelayParser: Encountered 1 error(s):
- Unknown field 'allInstaNode' on type 'Query'. Source: document `InstagramPosts` file: `GraphQL request`
GraphQL request (3:13)
2: query InstagramPosts {
3: allInstaNode(limit: 20) {
^
4:
npm ERR! code ELIFECYCLE
npm ERR! errno 1```
while trying to build - it was working just fine 24 hours ago
from gatsby-source-instagram.
Related Issues (20)
- Getting instagram ID HOT 1
- Cannot read property 'next' of undefined
- sourced image URL expires after a few days HOT 1
- Cannot read property 'edge_owner_to_timeline_media' HOT 2
- I can use version 0.6.1, but not 0.9.0 (Cannot query field "allInstaNode" on type "Query") [Gatsby 2.27.0] HOT 3
- Use maxPosts for scraping method HOT 1
- Hashtag Graph API function doesn't work HOT 5
- Cannnot get last 3 posts HOT 1
- Does using the Graph API remove the 50 posts limit? HOT 1
- New gatsby version issue HOT 7
- Error status Error: Request failed with status code 500 HOT 2
- Could not fetch instagram posts. Error status TypeError: Cannot read property 'user' of undefined HOT 13
- Unable to queryCarousel Images when scraping public posts HOT 1
- Migrating to safer typescript implementation HOT 3
- Dependency Dashboard
- Build works fine locally, but fails on Gatsby Cloud HOT 5
- Extend the Facebook/Instagram access token time HOT 2
- Error while running the sourceNodes lifecycle HOT 2
- Maintenance HOT 3
- NPM peer dependencies update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-instagram.