Fastify Adapter not processing requests
See original GitHub issueI’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
- Clone NestJS fastify example
- Run
yarn install
in terminal - Select one of the following versions:
- 5.0.0-rc.4
- 5.0.0-rc.3
- 5.0.0-rc.2
- Run
yarn start
in terminal - Open browser and paste ‘http://localhost:3000/cats’ into the address bar
- 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:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 😃
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.