GithubHelp home page GithubHelp logo

Comments (6)

frederikhors avatar frederikhors commented on June 20, 2024 1

Do you mean this?

err: Error: Invalid execution result: data is not plain object
    at parseExecutionResult (graphql-request.js?v=e1d86bd7:8971:13)
    at parseGraphQLExecutionResult (graphql-request.js?v=e1d86bd7:8945:26)
    at parseResultFromResponse (graphql-request.js?v=e1d86bd7:9086:12)
    at async runRequest (graphql-request.js?v=e1d86bd7:9045:18)
    at async GraphQLClient.request (graphql-request.js?v=e1d86bd7:9215:22)

I'm using it in the browser.

Sorry I cannot create a complete reproduction right now: I don't have time and I don't know how to start...

from graphql-request.

frederikhors avatar frederikhors commented on June 20, 2024 1

It works now (v33)! Thanks!

from graphql-request.

frederikhors avatar frederikhors commented on June 20, 2024

I tried with both:

const client = new GraphQLClient("/graphql", {
  errorPolicy: "all",
});

and with the default value.

from graphql-request.

frederikhors avatar frederikhors commented on June 20, 2024

With 7.0.0-next.14 works. From 15 there is the issue.

from graphql-request.

jasonkuhrt avatar jasonkuhrt commented on June 20, 2024

What is the stack trace? If that response shape is leading to that thrown error then a repro should be easy here, (e.g. a middleware that forces that mocks that response).

Is the issue happening in Node or just browser?

from graphql-request.

jasonkuhrt avatar jasonkuhrt commented on June 20, 2024

Thanks @frederikhors, should be fixed now.

from graphql-request.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.