graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Client parsing schema throws a horrible stacktrace when URL is incorrect

Open luke-hill opened this issue 5 years ago • 0 comments

If you try parse a schema from a URL which is partially incorrect you get the horrible invalid token JSON error.

I found out sometimes this occurs due to not putting /graphql on the end of links. However this is inconsistent and doesn't always fix the issue (It did in my instance).

Perhaps we could find a way of throwing a better error. Also I'm getting this error when running a new query against this endpoint (And don't know why)

luke-hill avatar Feb 27 '20 17:02 luke-hill