Skip to content
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

Error: ECONNRESET after 2 minutes waiting for introspection query #41

Open
jessesmall opened this issue Aug 12, 2021 · 0 comments
Open

Comments

@jessesmall
Copy link

path\node_modules\dociql\node_modules\sync-rpc\lib\index.js:146
      throw new Error(
      ^

Error: nodeNC failed:

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}

The above error gets thrown if the introspection query takes longer than 2 minutes (I have a very large schema so it takes just over 2 minutes to return). After some investigation it looks like this is a bug from the sync-rpc library see here so there is a fix but it requires editing the sync-rpc library itself.

Is there a way around this? I think allowing us to point to a json with the introspection results directly would solve this issue.

@jessesmall jessesmall changed the title Error: ECONNRESET when reading in introspection query Error: ECONNRESET after 2 minutes waiting for introspection query Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant