GithubHelp home page GithubHelp logo

Comments (6)

oorestisime avatar oorestisime commented on June 19, 2024 1

Hey! glad you found it! and yes your cache folder should be in the gitignore. The cache on netlify is not going to be persisted and that is ok.
If you want however to persist it for perf issues you might want to have a look at this https://github.com/axe312ger/gatsby-plugin-netlify-cache

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 19, 2024

Hey there,

Not sure i fully grasp what you are describing. Can you show me how you query this image?
You shouldn't be getting absolute paths normally.

from gatsby-source-instagram.

perezfitness avatar perezfitness commented on June 19, 2024

Sure! this is what the query looks like. I got it from the given example from this repo.

export const pageQuery = graphql`
  query IndexQuery {
    allInstaNode(limit: 4, filter: { username: { eq: "perez_fitness" }  }) {
      edges {
        node {
          id
          username
          likes
          caption
          comments
          localFile {
            childImageSharp {
              fluid(quality: 70, maxWidth: 600, maxHeight: 600) {
                ...GatsbyImageSharpFluid_withWebp
              }
            }
          }
        }
      }
    }
  }
`

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 19, 2024

Hm this should work , the plugin isn't doing anything manual with the cache. it uses gatsby helpers.
what i am suspecting is maybe an incorrect downloand or a corrupted cache folder? can you reliably reproduce this somehow?

from gatsby-source-instagram.

perezfitness avatar perezfitness commented on June 19, 2024

The error shows every time i deploy on netlify, but I can reproduce the error on my local machine if i delete the cache images inside the cache folder. In case the cache folder is corrupted I'm going to try following this Debugging Cache Issues Guide

This might be a dumb question but does it make a difference if the cache folder is in .gitignore? I found this guide on Gatsby Project Structure and it suggests that the cache folder should be in .gitignore. My cache folder is not in .gitignore, im going to try adding it to .gitignore and see it what happens

Im going to follow both guides and get back to you

from gatsby-source-instagram.

perezfitness avatar perezfitness commented on June 19, 2024

I followed the debugging cache guide and it worked! I ran the gatsby clean script to clean the cache and it worked! Thanks for the help @oorestisime

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.