Giter VIP home page Giter VIP logo

Comments (3)

trevor-scheer avatar trevor-scheer commented on June 18, 2024 1

Looks right to me! I think we do something similar in one of the other integrations if you poke around. In any case, seems correct and the test is passing so 👍

from apollo-server-integration-h3.

trevor-scheer avatar trevor-scheer commented on June 18, 2024

So the error happens in this test:

https://github.com/apollographql/apollo-server/blob/fd48f2ca49ae7992515ec78b62d65f2d9a7921a9/packages/integration-testsuite/src/httpServerTests.ts#L338-L353

And the code that's testing is here:
https://github.com/apollographql/apollo-server/blob/ff69ee5bc2564fa757e5407e76b7bb184b4cd6cb/packages/server/src/runHttpQuery.ts#L128-L132

I'll need to look a bit more closely when I have more time. Can you share the body on the HTTPGraphQLRequest? I can do some debugging, though probably not until Monday.

from apollo-server-integration-h3.

tobiasdiez avatar tobiasdiez commented on June 18, 2024

Thanks for your help!

I just debugged this. The body is the object

{
  query: "query test{ testString }",
}

and thus passes the isNonEmptyStringRecord test. I guess the problem was that I always parsed the body as json, regardless of the content-type header. I've fixed that now in f2d84cd. Let me know if you think that's not the right way to proceed.

from apollo-server-integration-h3.

Related Issues (7)

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.