gatsby-source-strapi
gatsby-source-strapi copied to clipboard
error (node:68661) Warning: No such label 'Fetch Strapi data' for
Describe the bug
After installing the gatsby-source-strapi plugin, and when we run Gatsby we get the following error:
error (node:68661) Warning: No such label 'Fetch Strapi data' for
Steps to reproduce the behavior
Install gatsby-soruce-strapi create a content-type create a template query the graph with a graphql query display the data.
Expected behavior
to display the data without console error. The data is displayed but we get errors.
System
Latest versions of Gatsby Latest Beta and Alpha versions of Strapi
Additional context
The error seems to be coming from this file:
https://github.com/strapi/gatsby-source-strapi/blob/master/src/fetch.js
Same problem with gatsby-soruce-strapi is this just false positive error since content gets fetched or there is really a bug
@mjurincic - This is a false positive error. The data DOES get fetched.
Same here! The No such label
err msg from console.timeEnd
method locates in NodeJS this line
#59 fixed this issue.
Eg. we make 4 requests. The console.time
has the same label Fetch Strapi data
for each request, when the first request finishes, it resolves the Fetch Strapi data
label. So the console.timeEnd
in the following 3 requests run into the No such label
error.
Thanks for your interest in this project. This plugin is moving into the Gatsby User Collective and this repo will be archived. Please open an issue in that repository, submit a PR if you'd like to see this implemented, or join us on Discord if you have questions!