Closed Ayesha1212 closed 2 years ago
Make sure your access token has full access, this solved the same issue I had a few days ago
Also in Users > USERS & PERMISSIONS PLUGIN > Roles > Public check find and findOne options
As @TDP17 said, please add a full-access API token token to your gatsby-config file.
Having the routes publicly available does not make a difference for this new version of gatsby-source-strapi, we now rely on API tokens instead
The routes are publicly are available and working fine while i am using them as a Restful api but graphlq source strapi throwing this error
Here is the error in terminal
"gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
Request failed with status code 403
Error: Request failed with status code 403
createError.js:16 createError [hecke]/[axios]/lib/core/createError.js:16:15
settle.js:17 settle [hecke]/[axios]/lib/core/settle.js:17:12
http.js:293 IncomingMessage.handleStreamEnd [hecke]/[axios]/lib/adapters/http.js:293:11
node:events:539 IncomingMessage.emit node:events:539:35
readable:1345 endReadableNT node:internal/streams/readable:1345:12
task_queues:83 processTicksAndRejections node:internal/process/task_queues:83:21`
`
here is my package.json file dependencies.
},`