Comments (6)
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.
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.
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.
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.
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.
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)
- 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
- url signature expired
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.