Describe the Bug
I am trying to build my gatsby application (running v4). My app uses @directus/gatsby-source-directus as a gatsby plugin to access CMS stored data for my app. When running both the development and the production build (gatsby develop and gatsby build), I encounter a rate limiting error message, thrown at the line the directus query is used. The app throws on trying to create a production build (gatsby build). The development build also shows this error at buildtime, but the app runs after the errors appear in the console.
My app also uses image processing and transforming plugins like:
- gatsby-plugin-image
- gatsby-plugin-sharp
- gatsby-transformer-rehype
- gatsby-transformer-sharp
To Reproduce
Run a gatsby application that queries a larger amount of documents (over 200), documents that each contain their own set of images.
You can run the application by using:
- gatsby develop
or
- gatsby build
Errors Shown
Error: Too many requests, retry after 278ms.
-
sdk.cjs.js:696 Transport.request
[website]/[@directus]/sdk/dist/sdk.cjs.js:696:23
-
runMicrotasks
-
task_queues:96 processTicksAndRejections
node:internal/process/task_queues:96:5
-
sdk.cjs.js:710 Transport.get
[website]/[@directus]/sdk/dist/sdk.cjs.js:710:16
-
sdk.cjs.js:37 FilesHandler.readOne
[website]/[@directus]/sdk/dist/sdk.cjs.js:37:26
-
gatsby-node.js:88 resolve
[website]/[@directus]/gatsby-source-directus/gatsby-node.js:88:36
-
async Promise.all
-
async Promise.all
-
async Promise.all
-
async Promise.all
-
async Promise.all
-
graphql-runner.ts:220 GraphQLRunner.query
[website]/[gatsby]/src/query/graphql-runner.ts:220:14
-
create-pages.ts:36 wrappedGraphQL
[website]/[gatsby]/src/services/create-pages.ts:36:25
-
gatsby-node.js:109 Object.exports.createPages
/Users/limbo/Documents/BLOCKTALK/website/gatsby-node.js:109:20
-
api-runner-node.js:487 runAPI
[website]/[gatsby]/src/utils/api-runner-node.js:487:16
What version of Directus are you using?
latest
What version of Node.js are you using?
16.6.0
What database are you using?
What browser are you using?
Chrome
How are you deploying Directus?
Describe the Bug
I am trying to build my gatsby application (running v4). My app uses @directus/gatsby-source-directus as a gatsby plugin to access CMS stored data for my app. When running both the development and the production build (gatsby develop and gatsby build), I encounter a rate limiting error message, thrown at the line the directus query is used. The app throws on trying to create a production build (gatsby build). The development build also shows this error at buildtime, but the app runs after the errors appear in the console.
My app also uses image processing and transforming plugins like:
To Reproduce
Run a gatsby application that queries a larger amount of documents (over 200), documents that each contain their own set of images.
You can run the application by using:
or
Errors Shown
Error: Too many requests, retry after 278ms.
sdk.cjs.js:696 Transport.request
[website]/[@directus]/sdk/dist/sdk.cjs.js:696:23
runMicrotasks
task_queues:96 processTicksAndRejections
node:internal/process/task_queues:96:5
sdk.cjs.js:710 Transport.get
[website]/[@directus]/sdk/dist/sdk.cjs.js:710:16
sdk.cjs.js:37 FilesHandler.readOne
[website]/[@directus]/sdk/dist/sdk.cjs.js:37:26
gatsby-node.js:88 resolve
[website]/[@directus]/gatsby-source-directus/gatsby-node.js:88:36
async Promise.all
async Promise.all
async Promise.all
async Promise.all
async Promise.all
graphql-runner.ts:220 GraphQLRunner.query
[website]/[gatsby]/src/query/graphql-runner.ts:220:14
create-pages.ts:36 wrappedGraphQL
[website]/[gatsby]/src/services/create-pages.ts:36:25
gatsby-node.js:109 Object.exports.createPages
/Users/limbo/Documents/BLOCKTALK/website/gatsby-node.js:109:20
api-runner-node.js:487 runAPI
[website]/[gatsby]/src/utils/api-runner-node.js:487:16
What version of Directus are you using?
latest
What version of Node.js are you using?
16.6.0
What database are you using?
What browser are you using?
Chrome
How are you deploying Directus?