Skip to content

feat: configurable threshold for RepeaterOverflowError #3692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jjangga0214 opened this issue Jan 21, 2025 · 0 comments
Open

feat: configurable threshold for RepeaterOverflowError #3692

jjangga0214 opened this issue Jan 21, 2025 · 0 comments
Labels
good first issue help wanted Extra attention is needed

Comments

@jjangga0214
Copy link

jjangga0214 commented Jan 21, 2025

Hi!

import { createPubSub } from 'graphql-yoga'

I am using PubSub object for subscription.
And sometimes this error happens.
I want to configure it not to have such a limit.

[0] [2025-01-21T15:11:35.672Z] ERROR  [Error [RepeaterOverflowError]: No more than 1024 pending calls to next are allowed on a single repeater.] 
[0] Internal error occurred during message handling. Please check your implementation. GraphQLError: Unexpected error.
[0]     at createGraphQLError (file:///Users/ocean/passview/main/node_modules/.pnpm/@[email protected][email protected]/node_modules/@graphql-tools/utils/esm/errors.js:28:12)
[0]     at maskError (file:///Users/ocean/passview/main/node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-yoga/esm/utils/mask-error.js:30:12)
[0]     at maskError (file:///Users/ocean/passview/main/node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-yoga/esm/server.js:82:42)
[0]     at onSubscribeError (file:///Users/ocean/passview/main/node_modules/.pnpm/@[email protected]/node_modules/@envelop/core/esm/plugins/use-masked-errors.js:74:30)
[0]     at file:///Users/ocean/passview/main/node_modules/.pnpm/@[email protected]/node_modules/@envelop/core/esm/orchestrator.js:336:25
[0]     at Object.next (file:///Users/ocean/passview/main/node_modules/.pnpm/@[email protected]/node_modules/@envelop/core/esm/utils.js:158:17)
[0]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[0]     at async onMessage (file:///Users/ocean/passview/main/node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-ws/lib/server.mjs:213:156)
[0]     at async WebSocket.<anonymous> (file:///Users/ocean/passview/main/node_modules/.pnpm/[email protected][email protected]/node_modules/graphql-ws/lib/use/ws.mjs:80:21) {
[0]   path: undefined,
[0]   locations: undefined,
[0]   extensions: {
[0]     unexpected: true,
[0]     originalError: {
[0]       message: 'No more than 1024 pending calls to next are allowed on a single repeater.',
[0]       stack: 'RepeaterOverflowError: No more than 1024 pending calls to next are allowed on a single repeater.'
[0]     }
[0]   }
[0] }
@jjangga0214 jjangga0214 changed the title RepeaterOverflowError feat: configurable threshold for RepeaterOverflowError Jan 21, 2025
@n1ru4l n1ru4l added good first issue help wanted Extra attention is needed labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants