gatsby-source-strapi icon indicating copy to clipboard operation
gatsby-source-strapi copied to clipboard

error (node:68661) Warning: No such label 'Fetch Strapi data' for

Open davidkartuzinski opened this issue 5 years ago • 4 comments

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

davidkartuzinski avatar Jun 20 '19 14:06 davidkartuzinski

Same problem with gatsby-soruce-strapi is this just false positive error since content gets fetched or there is really a bug

mjurincic avatar Jun 28 '19 11:06 mjurincic

@mjurincic - This is a false positive error. The data DOES get fetched.

davidkartuzinski avatar Jul 01 '19 09:07 davidkartuzinski

Same here! The No such label err msg from console.timeEnd method locates in NodeJS this line

luck2011 avatar Jul 23 '19 01:07 luck2011

#59 fixed this issue.

56810201-5ed83700-683e-11e9-813b-5499777b70f5

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.

luck2011 avatar Jul 23 '19 01:07 luck2011

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!

moonmeister avatar Dec 27 '22 18:12 moonmeister