Comments (10)
Yeah that .cache folder can be a major headache with gatsby, all the testing and work done in there lately I automatically delete it before doing anything.
So all working as expected after updating the env var and clearing cache?
Yep! Everything working as expected
from gatsby-source-directus.
Linear: ENG-58
from gatsby-source-directus.
@treboryx there was an issue on previous versions that didn't pass the headers correctly and generated this message but that was fixed in the most recent release, if you've updated to the most recent, can you try deleting your .cache folder and re-run please?
from gatsby-source-directus.
@treboryx there was an issue on previous versions that didn't pass the headers correctly and generated this message but that was fixed in the most recent release, if you've updated to the most recent, can you try deleting your .cache folder and re-run please?
I tried all that before bothering you guys.
clean install, removed the .cache dir
I even re-cloned the examples repository in a new directory to test it and I get the same error.
Is it possible that it's something else?
from gatsby-source-directus.
I've run the example four times this morning and didn't repeat. (And deleted .cache each time)
- Are the url and credentials correct
- Are permissions correct on your site? If using the admin credentials then shouldn't matter but if the credentials are for another user then they'd need to be configured correctly.
- If you try to access the graphql using a tool like postman what does it return?
from gatsby-source-directus.
I've run the example four times this morning and didn't repeat. (And deleted .cache each time)
- Are the url and credentials correct
- Are permissions correct on your site? If using the admin credentials then shouldn't matter but if the credentials are for another user then they'd need to be configured correctly.
- If you try to access the graphql using a tool like postman what does it return?
Everything is the default provided by the examples repository. I have ensured that the example credentials work correctly, but the issue persists.
I also tried a GraphQL query on postman, and that seems to work.
I have recorded the whole process, from cloning to running both directus and gatsby, if it's of any help
Code_B0wwiVHkiG.mp4
from gatsby-source-directus.
@treboryx Ok, you're hitting an issue in node 18.
In your .env
, replace:
GATSBY_DIRECTUS_URL=http://localhost:8055
with:
GATSBY_DIRECTUS_URL=http://127.0.0.1:8055
I'll push an update shortly that changes this to no longer mention localhost but that's your issue provided the credentials haven't been changed, etc
from gatsby-source-directus.
The examples have been updated as of directus-labs/examples#177 and merged to reflect this URL change everywhere.
from gatsby-source-directus.
Thank you, I thought I had tried this already but I may have not deleted the cache 😅
from gatsby-source-directus.
Yeah that .cache folder can be a major headache with gatsby, all the testing and work done in there lately I automatically delete it before doing anything.
So all working as expected after updating the env var and clearing cache?
from gatsby-source-directus.
Related Issues (15)
- gatsby-source-directus: Children of imageFile are null on build when requesting an image twice HOT 9
- gatsby-source-directus fails with Node 18 HOT 3
- Cannot query field "directus" on type "Query" HOT 2
- gatsby-source-directus fails to generate pages in Deferred Static Generation (DSG) HOT 2
- This is a test HOT 1
- . HOT 1
- After reinstalling packages conn refused HOT 4
- gatsby build fails – `Unable to fetch:` asset HOT 1
- The plugin "gatsby-source-directus" created a node of a type "File" owned by "gatsby-source-filesystem" HOT 8
- Issue with directus installed in sub directory
- Missing onError handler for invocation 'building-schema', error was 'Syntax Error: Invalid number, expected digit but got: "A".
- @directus/gatsby-source-directus throws on building gatsby application, too many requests. HOT 5
- Missing onError handler for invocation 'building-schema', error was 'Error: Schema must contain uniquely named types but contains multiple types named "File".'. Stacktrace was 'Error: Schema must contain uniquely named types but contains multiple types named "File". HOT 1
- gatsby-source-directus 9.14.4 returns null imageFile data for videos HOT 7
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-directus.