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

FetchError: invalid json response body at https://hub.snapshot.org/graphql reason: Unexpected token < in JSON... #97

Open
sentry-io bot opened this issue Sep 5, 2023 · 1 comment · May be fixed by #102

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 5, 2023

Sentry Issue: SNAPSHOT-WEBHOOK-7

FetchError: invalid json response body at https://hub.snapshot.org/graphql reason: Unexpected token < in JSON at position 0
  File "/workspace/node_modules/node-fetch/lib/index.js", line 272, in <anonymous>
    return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  File "node:internal/process/task_queues", line 95, in process.processTicksAndRejections
@wa0x6e
Copy link
Contributor

wa0x6e commented Sep 5, 2023

This could be solved by using a keep-alive connection to the hub, and will require install of the @apollo/client package, instead of using snapshot.js to send graphql query to the hub.

@wa0x6e wa0x6e linked a pull request Sep 11, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant