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

https://thegraph.com/explorer/ is breaking #502

Open
aditya-manit opened this issue Dec 10, 2020 · 0 comments
Open

https://thegraph.com/explorer/ is breaking #502

aditya-manit opened this issue Dec 10, 2020 · 0 comments

Comments

@aditya-manit
Copy link

https://thegraph.com/explorer/ is breaking a lot, and stacktrace is getting show on the browser, we could handle it better and show a user friendly message. Its always better to have generic exception mapper which could maps any exception if we forget to handle it.

Stacktrace at the browser:

An error occurred.
Error: Network error: Unexpected token < in JSON at position 0
at new ApolloError (/graph-explorer/node_modules/apollo-client/bundle.umd.js:59:32)
at QueryManager. (/graph-explorer/node_modules/apollo-client/bundle.umd.js:1183:49)
at step (/graph-explorer/node_modules/tslib/tslib.js:133:27)
at Object.next (/graph-explorer/node_modules/tslib/tslib.js:114:57)
at /graph-explorer/node_modules/tslib/tslib.js:107:75
at new Promise ()
at Object.__awaiter (/graph-explorer/node_modules/tslib/tslib.js:103:16)
at /graph-explorer/node_modules/apollo-client/bundle.umd.js:1146:87
at /graph-explorer/node_modules/apollo-client/bundle.umd.js:1626:21
at Array.forEach ()

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