95,096 questions
-3
votes
0
answers
65
views
Protected routes redirect correctly in local, but show 404 on server [closed]
I have a project developed with React (Vite) for the frontend and Node.js (Express) for the backend.
When running locally, everything works as expected:
If I try to access a protected route without ...
0
votes
0
answers
42
views
Error: column "displayUsername" of relation "users" does not exist in better-auth 1.3.6 and 1.3.7
I am getting the following error when I try to update a username in better-auth from a sveltekit client
# SERVER_ERROR: error: column "displayUsername" of relation "users" does ...
-1
votes
0
answers
33
views
How to implement intelligent query routing and conversation memory in a Node.js RAG chatbot with multiple data sources?
Background
I have a Node.js/Express application with MongoDB that integrates OpenAI and LangChain. The tech stack includes:
Node.js/Express backend
MongoDB database
OpenAI API
LangChain
Current ...
-1
votes
0
answers
70
views
Login works but profile icon does not update after redirect [closed]
I am building a production-ready e-commerce website with separate flows for customers, admins, and delivery partners.
I have HTTP-only JWT cookies for authentication.
The problem is:
Login works fine....
0
votes
0
answers
66
views
Node.js Redis key expires much faster than EX value specified
I'm having a strange issue with key expiration in node-redis. I'm trying to cache a response from an external API (jsonplaceholder) in my Express application, but the key expires much faster than the ...
-5
votes
0
answers
76
views
npm run start is throwing error, what could be wrong? [duplicate]
throw new TypeError(`Missing parameter name at ${i}: ${DEBUG_URL}`);
^
TypeError: Missing parameter name at 2: https://git.new/pathToRegexpError
at name (/Users/user/Desktop/mern/node_modules/path-...
0
votes
1
answer
55
views
upload file with angular + express + multer not working [closed]
I have followed this guide https://blog.angular-university.io/angular-file-upload/ to upload images from Angular to express with multer. But it does not work as expected.
First I tried a simple html :
...
0
votes
2
answers
66
views
Upsert only columns that have a value that is not undefined or null using @supabase/ssr
I am trying to upsert a table when a web hook is triggered. This web hook only returns the updated fields, so sometimes name and notify fields are missing. The only field that is always coming from ...
-1
votes
0
answers
49
views
Error while trying to create JWT token in register API using TypeScript [duplicate]
Code:
const newUser = new User({
username,
email,
password: passwordHash,
organization: null,
designation: null,
role: "user",
});
await newUser.save();
const ...
1
vote
1
answer
80
views
Express.json() works on local but not on AWS Lambda
I've been struggling to parse the request body from POST. I tested the code locally via curl and returns the json body. On Lambda, I tried both curl and Postman but it just returned the buffer data.
...
1
vote
2
answers
64
views
NestJS @Public() decorator works on other routes but returns 401 Unauthorized on one route with @Res() response
I have a NestJS app with global JWT and Roles guards applied in main.ts. I use a custom @Public() decorator to mark public (unauthenticated) routes. The decorator works fine for most routes, but one ...
0
votes
0
answers
64
views
Text Input Field Not Working In React/Electron/Express App
Basically code is for an electron app with a react frontend and an express server connected to a local postgresql db.
I have a page with a list of employees on one side and an add icon. If you click ...
0
votes
0
answers
55
views
if i wrote"npm run build" command in package.json, what should i write in build command in project setting of vercel's framework setting?
i am using express + typescript, and deploying with vercel.
"scripts": {
"start": "nodemon --exec npx tsx src/app.ts",
"build": "tsc && tsc-...
1
vote
1
answer
43
views
How can migrate Prisma without importing all my models to one schema file?
Currently im using prisma 6.12.0 which it should support "multi-file Prisma schema" or "Prisma Schema Folder," helps in breaking down a single, potentially large schema.prisma file ...
-3
votes
0
answers
78
views
Cart shows item after adding but disappears on refresh (MERN Stack)
I'm building an e-commerce website using the MERN stack (MongoDB, Express, React, Node.js) and I'm stuck on a strange bug with the cart system.
🧩 Problem:
When I log in with User A and add a product ...