我要按照说明进行操作:https://strapi.io/blog/building-a-static-website-using-gatsby-and-strapi#allowaccess
但是遇到错误:请求失败,状态码为404
Node.js版本: v10.13.0 npm版本: 6.14.6 Strapi版本: 3.1.0-alpha.5 操作系统: mac
哪个示例引起了问题? trapi.io/blog/使用gatsby和strapi#allowaccess构建静态网站
当前行为是什么? Graphql查询不起作用。
重现问题的步骤:
$ gatsby develop
success open and validate gatsby-configs
success load plugins - 2.011s
success onPreInit - 0.004s
success initialize cache - 0.018s
success copy gatsby files - 0.102s
success onPreBootstrap - 0.017s
success createSchemaCustomization -
info Starting to fetch data from Strapi
info Starting to fetch data from Strapi
info Starting to fetch data from Strapi
ERROR #11321 PLUGIN
"gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
Request failed with status code 404
Error: Request failed with status code 404
createError.js:16 createError
[portfolio_v4]/[gatsby-source-strapi ]/[axios]/lib/core/createError.js:16 :15
settle.js:18 settle
[portfolio_v4]/[gatsby-source-strapi ]/[axios]/lib/core/settle.js:18:12
http.js:202 IncomingMessage.handleSt reamEnd
[portfolio_v4]/[gatsby-source-strapi ]/[axios]/lib/adapters/http.js:202:1 1
task_queues.js:84 processTicksAndRej ections
internal/process/task_queues.js:84:2 1
预期的行为是什么? 预期的行为是什么?
当我尝试从盖茨比获得帮助时不起作用 http:// localhost:8000 / ___ graphql
在http:// localhost:8000 / ___ graphql上没有allStrapiblogs的方法