Skip to main content
2 votes
0 answers
98 views

curl --request POST 'http://127.0.0.1:3000/' --header 'Content-Type: application/json;' response Body cannot be empty when content-type is set to 'application/json' import { NestFactory } from '@...
puz_zle's user avatar
  • 627
0 votes
1 answer
152 views

I’m trying to run my Node.js app inside Docker on intel macbook, but it crashes at startup with the following error: Error: Cannot find addon ‘.’ imported from ‘file:///app/node_modules/sodium-native/...
Anton Balkouski's user avatar
0 votes
0 answers
56 views

I am developing an app using fastify 5.6 & better-sqlite3 - 12.2.0 all is well and better-sqlite3 speed is phenomenal. The development was done in Windows 11 machine. I am trying to host this in a ...
Ananda's user avatar
  • 928
0 votes
1 answer
101 views

I'm trying to test (using Vitest) a part of my Fastify app that uses @fastify/websocket (and transitively ws), but my tests keep timing out despite running to completion. Here's a relevant excerpt ...
JesseTG's user avatar
  • 2,195
0 votes
0 answers
139 views

the schema validation does not work in this example because the file is converted to Buffer when the attachFieldsToBody: “keyValues” parameter is set in the @fastify/multipart config, but I need it to ...
Desalutar's user avatar
1 vote
0 answers
76 views

I'm building a prototype to test Server-Side Rendering (SSR) with Webpack Module Federation (WMF) in our large app. I have two apps: App 1 – Remote App (React + Webpack) Basic Button1 component: const ...
War han's user avatar
  • 21
0 votes
0 answers
46 views

I'm trying to pass an instance of a controller class to Fastify routing, but Fastify only calls the method "login", the constructor is not called const userController = container.get<...
Igor Bezlepkin's user avatar
1 vote
0 answers
20 views

Fastify allows registering plugins against a Fastify instance. One way of doing that is: import Fastify from 'fastify'; import cors from '@fastify/cors'; const fastify = Fastify(); await fastify....
treecoder's user avatar
  • 45.6k
0 votes
0 answers
61 views

I have a simple schema for data validation like below, when sending an array for packages with length 1 it throw an error for anyOf, and for more than one. it's ok and work currectly. I've try to ...
Farshad Fahimi's user avatar
0 votes
0 answers
179 views

Nginx config: stream { map $ssl_preread_server_name $backend_upstream { api.xxx.com backend_1; } upstream backend_1 { server 127.0.0.1:4433; } server { ...
wiwiwi's user avatar
  • 1
1 vote
1 answer
33 views

FastifyAdapter bypasses global ValidationPipe for tz, resulting in 400 whitelistValidation error in production builds Description I’m experiencing an issue where my global ValidationPipe is correctly ...
user30901179's user avatar
1 vote
0 answers
260 views

I'm trying to add a role field to user schema. It worked as I can see it on the database but it doesn't get returned when I call any api endpoints export const auth = betterAuth({ database: pool, ...
Max Kabechani's user avatar
1 vote
1 answer
104 views

There is Fastify app with pino logger on AlmaLinux 9.2 using pm2. $ timedatectl: Local time: Mon 2025-06-09 22:23:54 +05 Universal time: Mon 2025-06-09 17:23:54 UTC RTC time: Mon 2025-06-09 17:23:...
MapUser's user avatar
  • 449
0 votes
1 answer
78 views

I try to use @fastify/view with TS and i'm getting an error: {"statusCode":500,"error":"Internal Server Error","message":"res.view is not a function"} ...
Igor Bezlepkin's user avatar
2 votes
1 answer
318 views

I'm using Fastify with the fastify-type-provider-zod plugin: const fastify = Fastify().withTypeProvider<ZodTypeProvider>(); And the fastify-autoload plugin: // This loads all plugins defined in ...
titaniumdecoy's user avatar

15 30 50 per page
1
2 3 4 5
54