question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fastify Adapter not processing requests

See original GitHub issue

I’m submitting a…


[ ] Regression 
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

NestJS does not process requests when Fastify Adapter has been enabled.

Expected behavior

NestJS should process requests and route to the appropriate controller method

Minimal reproduction of the problem with instructions

  1. Clone NestJS fastify example
  2. Run yarn install in terminal
  3. Select one of the following versions:
  • 5.0.0-rc.4
  • 5.0.0-rc.3
  • 5.0.0-rc.2
  1. Run yarn start in terminal
  2. Open browser and paste ‘http://localhost:3000/cats’ into the address bar
  3. Notice the request is not handled and no logs appear in the terminal

What is the motivation / use case for changing the behavior?

Environment


Nest version: >= 5.0.0-rc.2 

 
For Tooling issues:
- Node version: 8.1.0
- Platform:  docker container (node:8.1.0-alpine) 

Others:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aserplussmcommented, Jun 7, 2018

@EricAWE We were able to figure out that it was an issue with fastify on docker. Check out this isssue on the fastify GitHub repo that outlines the problem and a solution. This worked for us 😃

0reactions
lock[bot]commented, Sep 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serverless - Fastify
Serverless. Run serverless applications and REST APIs using your existing Fastify application. By default, Fastify will not work on your serverless platform ...
Read more >
How to ban a user for 60 seconds after he exceeded rate limit ...
User A requested for an API 20 time in 32 seconds that means he has now exhausted his quota of hits ( As...
Read more >
Taking apart NestJS middleware Part II: Fastify - Turtle-Techies
So Express is more popular, but Fastify has better performance. And running Nest on Fastify is as easy including the FastifyAdapter adapter:.
Read more >
Fastify – framework overview, implementation, pros, and cons
They take the guesswork out of handling requests and HTTP methods. ... The creators of Fastify believe that it's not the case.
Read more >
Building modern APIs with Fastify, Graphql, and MongoDB
Out of the box, Fastify does not support GraphQL but we can easily add ... Mercurius is a GraphQL adapter for Fastify; it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found