Questions tagged [nestjs-fastify]

36 questions
0
votes
1 answer

NestJS + Fastify e2e testing: Jest did not exit one second after the test run has completed

While running end-to-end tests of NestJS+Fastify application I noticed the following warnings: Jest did not exit one second after the test run has completed. This usually means that there are asynchronous operations that weren't stopped in your…
Daniel Kucal
  • 8,684
  • 6
  • 39
  • 64
0
votes
0 answers

Unable to get request body via NestJS Middleware having application with FastifyAdapter

I am working with the NestJS project, and want to log each and every request. I am using Fastify in my REST API. I made a nest middleware for getting request body: import { HttpException, Injectable, NestMiddleware } from '@nestjs/common'; import {…
0
votes
1 answer

NestJs with Fastify doesn't execute code after app.listen()

this is my first question here, so i'd like to apologize in advance if i miss something important. So this is pretty basic, but i didn't find an answer anywhere, as the title states, my NestJs application running with Fastify, simply does not…
0
votes
1 answer

NestJS Dynamic template rendering in Fastify mode - res.render is not a function

I feel like Model-View-Controller @ docs.nestjs.com doesn't cover this use case - there is "Dynamic template rendering" section + Fastify but both combined together don't seem to work well. I've tried the following snippet: import { Get, Res } from…
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
0
votes
0 answers

nestjs+fastify stopped working after upgrade

What I did: I upgrade nest js using nest update -f -t latest, the package version diffs are below. before "@nestjs/bull": "^0.1.1", "@nestjs/common": "^7.0.7", "@nestjs/core": "^7.0.7", "@nestjs/graphql": "^7.3.7", "@nestjs/platform-fastify":…
sora
  • 1,061
  • 2
  • 12
  • 23
-1
votes
2 answers

NestJS Fastify - Best way to upload file on S3

So, I have a few issues. main.ts async function bootstrap() { const app = await NestFactory.create( AppModule, new FastifyAdapter(), { bufferLogs: true, bodyParser: false }, ); const configService =…
1 2
3