GithubHelp home page GithubHelp logo

Comments (7)

oorestisime avatar oorestisime commented on June 16, 2024 8

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.

oorestisime avatar oorestisime commented on June 16, 2024 5

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.

MilosJo avatar MilosJo commented on June 16, 2024

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.

fresquer avatar fresquer commented on June 16, 2024

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.

babzcraig avatar babzcraig commented on June 16, 2024

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.

oorestisime avatar oorestisime commented on June 16, 2024

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.

pierrenel avatar pierrenel commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.