GithubHelp home page GithubHelp logo

Comments (5)

kyle-mccarthy avatar kyle-mccarthy commented on July 28, 2024 2

Yes, you are correct! I pushed v0.6.3 with this, sorry for prematurely closing the issue.

from nest-next.

kyle-mccarthy avatar kyle-mccarthy commented on July 28, 2024 1

Thank you for that example, it was extremely helpful. I just released v0.6.1 with a fix for your bug. Let me know if you have any other issues!

from nest-next.

kyle-mccarthy avatar kyle-mccarthy commented on July 28, 2024

This is pretty interesting... I get the request and response from nest by calling ctx.getArgs() but this is saying that your request is undefined (which I didn't know is possible).

Would you provide me with a minimal reproducible example?

from nest-next.

renehauck avatar renehauck commented on July 28, 2024

Of course... Here is the example:

https://github.com/renehauck/nest-next-render-error

Just start, open the page "http://localhost:3000/graphql" and execute the query

{
  Hello
}

Normally the error "Ups" should appear, but instead the error "Cannot read property 'raw' of undefined" is thrown again.

from nest-next.

renehauck avatar renehauck commented on July 28, 2024

ok, the ".raw"-error is gone, but now I don't get any more errors which are thrown in the resolvers. 😃

   if (response && request) {
      const requestHandler = this.service.getRequestHandler();
      const errorRenderer = this.service.getErrorRenderer();
       ....
       return errorRenderer(err, req, res, pathname, query);
      }
    }
    else throw err;
   ^^^^^^^^^^^^^^^^

I think there's an "else throw err;" missing at the end, right? 😊

from nest-next.

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.