3,177 questions
0
votes
0
answers
39
views
Nest.js. Swagger. How to split swagger docs into 2 documents: for clients and admins
I'm using NestJS (v11) and @nestjs/swagger (v11.0.3).
I have a modular app structure where some controllers are intended for public clients (mobile app, frontend) and others are intended for admin ...
0
votes
0
answers
19
views
Nginx reverse proxying to another Nginx docker container results in mixed content
I'm trying to achieve the following:
"Entry"-Server as reverse proxy running on :2000
/ -> frontend:3000 (frontend being a Nginx-Server from my docker-compose)
/api -> backend:4000 (...
0
votes
0
answers
15
views
ElasticSearch query via NEST returns 0 documents, while identical query via REST does return documents
For a .NET application that calls ElasticSearch via NEST, I found the odd issue that the query via NEST always returns 0 documents, while - if I extract the underlying query and call ES directly with ...
0
votes
0
answers
37
views
NESTJS ERROR [ExceptionsHandler] column "nan" does not exis
I am developing my own video hosting, but when dynamically loading videos, I encountered an error on the server:
TypeError: response is undefined on the client
[Nest] 10692 - 03/29/2025, 8:41:36 AM
...
0
votes
0
answers
38
views
How to optimize process of reading files in node js
In my application I have apis which work with csv files, and files can be greater then 200MB, like there is a part where I find not only necessary rows, but also count all rows length
async ...
0
votes
0
answers
26
views
Trouble with Postiz when try to login
I have a problem with postiz on server. This is my url config:
MAIN_URL: "http://*public-host*:5000"
FRONTEND_URL: "http://*public-host*:5000"
NEXT_PUBLIC_BACKEND_URL: "...
0
votes
0
answers
7
views
i am getting the error twise in my swgger api responce why i am getting it twise?
{
"response": {
"message": "Access denied: Only ADMIN can Access this Route.",
"error": "Forbidden",
"statusCode": 403
},
"status":...
0
votes
1
answer
46
views
Nest.js Dynamic Modules and Injectable Singleton
Introduction
Have a dynamic module, which returns module with connection providers.
@Module({})
export class ConnectionModule {
static register(cnf: ConnectionsList) {
const cons = [];
if (...
0
votes
0
answers
16
views
Why my cookies aren't stored in cookie storage in Google Chrome (or anywhere)
I have deployed my front-end on Vercel and back-end on railway. Localy it works fine, but in production I have a problem with non-storing cookies.
Here is my axios config for front-end (Next.js):
...
0
votes
0
answers
34
views
How to use pg Pool in node js nest js with typeorm
I already have a Node.js application using NestJS with TypeORM configured. Now, I want to implement a PostgreSQL connection pool using pg Pool for better database connection handling. Is it possible ...
0
votes
0
answers
31
views
How to use include_named_queries_score with NEST client
Using the .NET Nest client for elastic search, how do I get it actually spit out the score for a named query?
I can set a name on part of my query, and it'll generate an elastic query that might look ...
1
vote
1
answer
38
views
It is not possible to access the database through the validator Nest JS
I'm trying to create an auto-check in nest js for the existence of a record in a prisma database using a validator class. I currently have the following code:
interface UniqueValidatorOptions {
...
0
votes
0
answers
40
views
Backend fails after adding SSL certificate. Nest/Nginx
My backend is not working after adding the SSL certificate. The backend worked with http before but after adding SSL certificate it stopped working. I thought the problem is with nginx configurations ...
1
vote
0
answers
48
views
Running migration in NestJs with typeorm
I am fairly new to Backend with NestJs and TypeORM, building a small reports application and I am having issues running migration as I have been using SQLite to get the project running.
npm run ...
1
vote
1
answer
52
views
Using different denominators in tern::count_occurrences within same split_by_row
To demostrate values using customized format "xx/xx (xx.x%)", a example is like this:
library(formatters)
library(rtables)
library(tern)
advs <- subset(ex_advs, COUNTRY %in% c("CHN&...
0
votes
0
answers
22
views
Nest js using javascript how to log data from form data
Hi im new to nestJs and i making an API and i encountered a proble i have a vueJS project for front end and it will send a data using formData (axios) and now on my nestJs i want to log the formdata
...
2
votes
1
answer
42
views
how to import a esModule in nest?
import { Injectable, OnModuleInit } from '@nestjs/common';
@Injectable()
export class PotatoService implements OnModuleInit {
constructor() {}
async onModuleInit(): Promise<void> {
...
0
votes
2
answers
54
views
Add a empty row between rows differentiated by key_cols
In order to distinguish rows in listing by key_cols variable by variable, it would be nice to have a empty row in between, there is an example:
library(rlistings)
adae <- ex_adae
lsting <- ...
-1
votes
1
answer
27
views
extend and implements with super constructor in nest js reposetory interface
I am trying to understand the nest js running project. there is a folder for the repository and in that folder like
db
|-- entities (all the tables)
|-- interfaces
|-- repositories
|- base (base repo)
...
1
vote
0
answers
120
views
Why does my private GitLab package return "404 Not Found" when trying to install it in a monorepo using pnpm?
I am working on a monorepo project using nx and pnpm. The project contains multiple packages, including @my-org/package1 and @my-org/package2. I have set up a private GitLab package registry to ...
0
votes
1
answer
31
views
the created_at search in prisma aggregateRow mongodb does not work
I use the date-fns library to work with dates. the code provided their methods.
prisma: 5.22.0
@prisma/client: 5.22.0
async getAllOnYear() {
const date = new Date()
const startYear = ...
1
vote
2
answers
61
views
display_columncounts will not work if col_counts is specified
remove N=xx frmo header is not working if col_counts is given:
library(rtables)
lyt3 <- basic_table(show_colcounts = FALSE) %>%
split_cols_by("ARM") %>%
analyze("AGE",...
1
vote
1
answer
43
views
Count number of patient with percentage with row-wise denominator by paired-column
I am working on this demanding table to count number of patients:
in columns: with and without flag
in rows: by country and site with different fomats, AND with different denominators in row within ...
1
vote
0
answers
17
views
Update field nestjs jsonb[] postgresql
I need update field in my i have something like that from postman
{
"id": "4",
"user": {
"id": "01JC32FBK3DYJMXZPDAVJA3NS0",
&...
-1
votes
1
answer
920
views
How to fix the " DeprecationWarning: The `punycode` module is deprecated." error with nestjs?
I am running a nestjs app and am getting the following error:
(node:28552) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
I have gone ...
0
votes
1
answer
46
views
How many reindex can run simultaneously in elasticsearch
I am doing one bigger migration using enrich and ingest pipeline. I am getting more slowness when doing multiple reindex simultaneously using the ingest pipeline. So, how many reindex can run ...
0
votes
2
answers
74
views
Nest can't resolve dependencies of the UserService (?). Please make sure that the argument at index [0] is available in the current context
Having some problems, di/circular-references I'm sure I'm doing wrong, I just can't see it.
Any help would be much appreciated
user.module.ts
import { Module } from '@nestjs/common';
import { ...
0
votes
0
answers
28
views
Looking for Advice on My Auth API Flow Design
I’m working on setting up an authentication flow that involves multiple endpoints called by another API to handle login and password reset processes. I need to consolidate these steps into a coherent ...
3
votes
1
answer
45
views
Nest can't resolve dependencies of the (?) Population
I m coded class scheduling with genetic algorithm (nest.js). My Program have geneticalgorithm.ts, data.ts ,population.ts, scheduleservice.ts schedulemodule.ts. population is called in the method I use ...
0
votes
0
answers
32
views
no main.js file in the dist running default nest build
I have nest js application api-gateway with types git submodule outside api-gateway.
/app # ls
api-gateway types
The structure of api-gateway
/app/api-gateway # ls
Dockerfile.dev dev.env ...
1
vote
1
answer
269
views
How can I access my Google Nest Aware video history via API?
I have an active Google Nest Aware subscription and want to retrieve video history (recordings and events) through an API. I know that some integrations are available via Google Assistant, but I'm ...
0
votes
0
answers
111
views
NestJs and Mongodb Project: Big problem with [email protected]
I have a problem that really makes me go round in circles since. I try to set up a Nest & Mongo project base to save time for the dev on the mongo NestJs couple. The elements are as follows:
// ...
0
votes
1
answer
25
views
Unexpected token 'export' Observable when nest build
I am trying to dockerize my application but I get this error only when running the container and not on my local machine I am using SWC Compiler on Nestjs
here is my dockerfile
FROM node:18.19.1-...
0
votes
0
answers
42
views
SQL Server TypeORM problem for other computer local network
So I want to connect to mssql server from my MAC in a NEST project. The SQL Server is running on windows machine on ip 192.168.31.78. I used DBEAVER in my mac which shows connection to be Successful. ...
0
votes
0
answers
28
views
ElasticSearch Nest missed InnerHits data
I trying to get data from nested field (using Inner hits)
{
"track_total_hits": true,
"from": 0,
"query": {
"bool": {
"must": [
...
0
votes
0
answers
23
views
Avoiding provider startup in NestJS tests
When i create a new module in NestJS i prefer testing the entire module as a component test. this means that i start the test with -
const module: TestingModule = await Test.createTestingModule({
...
0
votes
0
answers
233
views
Prisma Error: P1017: Server has closed the connection
I'm following a course, here is the link
halfway through the course he started testing the code but made another database connection and created a new .env name it .env.test
in .env
PORT=3002
...
0
votes
0
answers
18
views
How to Inject Dependency to Nest.js Pipe
I have pipe like this
@Injectable({ scope: Scope.DEFAULT })
export class EntValidatePipe implements PipeTransform<any, Promise<any>> {
constructor(private OpType:EnumOpType,private ...
0
votes
1
answer
63
views
Filter in not going to apply in the nested arrays of roles in nest js using mikroorm with mongodb many to many relations with user and roles
I am applying the filter in the nested many to many relations roles in this query in user.service.ts like this:
const users = await this.repo.findAndCount({roles: {slug: 'admin'}});
but I have get ...
0
votes
1
answer
23
views
Error while creating post in nestjs with Elastic search
I have a Nestjs application that runs locally perfectly along with elastic search and Postgres. I am trying to create post which is working without elastic search but with elastic search i get error ...
0
votes
1
answer
164
views
NestJS/MongoDB Auth not working after deployment via docker compose
Basically, mongo-auth via rootUser/created user works fine locally, but fails on my server after deployment via Coolify/Dokploy
Here is my docker compose file:
version: '3.8'
services:
mongodb-dev:
...
0
votes
0
answers
80
views
Every 75 seconds without a request to elastic, the next request takes 15 seconds to complete
I created an asp .net 8 app that is calling elastic through injected service:
public static IServiceCollection AddElasticClient(this IServiceCollection services, ElasticSettings elasticSettings)
{
...
0
votes
0
answers
100
views
Migrating from Elastic Search 6.8 to 8+ along with High level client Upgrade (NEST)
Currently we are using Elastic search 6.8 for all our Dotnet projects,For High level client we are using Nest 6.5 .We are thinking to upgrade to ES 8+ for obvious reasons as the current version is EOL....
1
vote
1
answer
32
views
Error connecting to the database in NestJs
In nestJs, I want to connect to two databases, I have a problem
I have two separate databases, each of which stores a series of data in themselves, both are mysql, but when I define the entities, it ...
1
vote
2
answers
64
views
How to extract session in next.js
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body >
<SessionProvider &...
0
votes
1
answer
105
views
How to detect duplicate Job add in Bull Queue in Nest?
I am using bull queue in Nest. I know it adds only jobs with unique ids and if the job exists with that id, it doesn't add it and returns the existing job. Is there any way to check whether the job I ...
0
votes
1
answer
94
views
How Scope works in Nest js
As per docs if a service is a request scope then the controller depends on it and will be request scope automatically.
Imagine the following dependency graph: CatsController <- CatsService <- ...
0
votes
2
answers
94
views
Guard in NestJs isn't work when i give it globally
I'm using an AuthGuard component globally in my NestJS application to protect routes, while allowing some routes to be public using a Public decorator. However, the guard isn't functioning as expected,...
0
votes
0
answers
29
views
How to fix an error when creating a migration
Error: Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. ...
0
votes
0
answers
171
views
onQueueAdded event in nestjs for bull mq
I want to perform some action when a job is added into the queue. I have studied nestjs documentation for queues but didn't find any event decorator that handles add events (something like ...