newrelic / nr1-graphiql-notebook

NR1 Graphiql Notebook allows you to explore New Relic data via our GraphQL API and share notebooks with colleagues.
https://discuss.newrelic.com/t/graphiql-notebook-nerdpack/82933
Apache License 2.0
9 stars 9 forks source link

'Add New Query' throws error #28

Closed ryanv94 closed 4 years ago

ryanv94 commented 4 years ago

[NOTE]: Hitting the Add New Query button throws console errors & returns the Opps! Something went wrong error message.

Description

[NOTE]: Hitting the Add New Query button throws console errors & returns the Opps! Something went wrong error message.

Steps to Reproduce

[NOTE]: Locally serving GraphiQl Notebook Nerdpack; try to Add New Query, watch error appear in console and in UI.

Relevant Logs / Console output.

Screenshot 2020-01-06 at 13 48 55

[NOTE]: nr1 nerdpack:serve --verbose did not reveal anything of interest for me.

Your Environment


This issue originated in the Explorers Hub: https://discuss.newrelic.com/t/graphiql-notebook/90812

gauthama-swiggy commented 4 years ago

Not able to save notebook, also there is a loading icon that is always present. And on clicking add query, something went wrong comes. Please find attached the console output

screen 1
devfreddy commented 4 years ago

@ryanv94 Thanks for porting the issue over.

@gauthama-swiggy We've found the issue, it's not specific to this Nerdpack. We're discussing internally the best approach to resolve it. Additionally, I'm going to improve a little of the error handling in this Nerdpack so its more clear where its failing at.

devfreddy commented 4 years ago

@ryanv94 @gauthama-swiggy The underlying api issue has been resolved, thanks to @mattbaker @binaryseed . I've also added a bit of error handling specifically around the schema query in https://github.com/newrelic/nr1-graphiql-notebook/pull/29 .

🚀