Fork me on GitHub
#luminus
<
2019-08-15
>
chrisps08:08:55

I am having some issue with graphql/lacinia, where every access fails with a parsing error but the built-in /graphiql endpoint works as advertised. This is a project built with lein new luminus app_name +swagger +graphql +re-frame +shadow-cljs +oauth +auth-jwe +postgres

chrisps08:08:05

I have not touched anything, the schema is as default, trying to access via re-graph (a re-frame gql-thing), fails with a {:errors [{:message The HTTP call failed., :extensions {:status 0}}]} which is not very enlightening. I’m unsure how to attack this. Any thoughts?

chrisps08:08:36

I’ve used the [gq](https://github.com/hasura/graphqurl) to access the endpoint, but it fails with a

Introspecting schema... !
Error: GraphQL error: Failed to parse GraphQL query.
    at new ApolloError (~/.npm-packages/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:92:26)
    at ~/.npm-packages/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:1587:34
    at ~/.npm-packages/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:2007:15
    at Set.forEach (<anonymous>)
    at ~/.npm-packages/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:2005:26
    at Map.forEach (<anonymous>)
    at QueryManager.broadcastQueries (~/.npm-packages/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:2003:20)
    at ~/.npm-packages/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:2130:19
    at Object.next (~/.npm-packages/lib/node_modules/graphqurl/node_modules/zen-observable/lib/Observable.js:308:23)
    at notifySubscription (~/.npm-packages/lib/node_modules/graphqurl/node_modules/zen-observable/lib/Observable.js:130:18)