Skip to main content
Filter by
Sorted by
Tagged with
-5 votes
1 answer
78 views

I want to store images in Database. My database is hosted in hostinger and my whole website is hosted in hostinger. I have tried with this code. const express = require("express"); const ...
Rahul Singh's user avatar
0 votes
0 answers
91 views

I'm currently trying to make a login and signup form using EJS, Express, Node, etc. However Whenever I submit data from a form, all data is being returned as "Invalid" I've checked my user ...
user30069178's user avatar
0 votes
0 answers
33 views

I'm currently learning about testing with Jest, and there's one test in an 'it' block that's failing. The issue happens when I try to update a task, but the task doesn't have an ID (it's null). I'm ...
Prabowo Sakti's user avatar
0 votes
0 answers
44 views

I am running a bash command using nodejs child_process exec function. I start the app and execute the shell, and it works successfully. It's an expressjs app running with nodemon. But on second time ...
Waleed93's user avatar
  • 1,332
1 vote
0 answers
180 views

I've made an error handler middleware in Express. The problem is that the error is not being thrown in the openapi/swagger. How to fix it? Also why am I getting an error if my request body is ...
user19991216's user avatar
0 votes
1 answer
48 views

So I have an express server set up to serve static content with express.static, some api routes and a last "failsafe" app.use('*'...) to serve the angular index. My issue is any /file.ext ...
Benjamin's user avatar
0 votes
0 answers
17 views

Issue with Express view rendering in /products route Folder Structure app/ ├── src/ │ ├── controllers/ │ │ ├── authController.ts │ │ └── productsController.ts │ ├── models/ │ ...
Agustín Alonso's user avatar
0 votes
0 answers
21 views

I have two (typeorm) entities: Book and Author. An Author can have one or more Books. The API has an endpoint to retrieve an author by id (/api/authors/:authorId): the AuthorController has an ...
73812u132n3n12's user avatar
0 votes
0 answers
56 views

I am building a full stack app using ExpressJS for the backend and Next.js for the frontend. The app is working fine when running locally on localhost. When I try to deploy on Vercel, it doesn't store ...
Rawda Yasser Mohamed's user avatar
-1 votes
1 answer
86 views

I'm running a express server and render a list. This is the code of the route: try { let result = await servCollections.prepareDataForListCollections(); let colls = result.data; let ...
mollpete's user avatar
0 votes
0 answers
30 views

I am using a proxy server named proxyserver.com, that proxies links to a local network server localserver. All the links starting with proxyserver.com/foo are proxied to localserver/foo. In my ...
tony_merguez's user avatar
1 vote
0 answers
13 views

i have a problem to connect with server when using electron builder so i guess the electron cant find the server file server.js in the root there is client server folders and main.js package.json main....
AnasEll's user avatar
  • 11
0 votes
0 answers
26 views

I am trying to clear a cookie named token in my Node.js Express app using res.clearCookie(). The cookie clears successfully when I test the API using Postman, but it doesn't clear when I test it in ...
Abhay Pundora's user avatar
-1 votes
1 answer
75 views

I have an expressjs app behind nginx server already importing and using cors module. var express = require("express"); var cors = require("cors"); var app = express(); var ...
Waleed93's user avatar
  • 1,332
0 votes
0 answers
39 views

Consider the following models and the following post method: router.post("/", async (req, res, next) => { const { address: addressData, building: buildingData, items: ...
IgorArnaut's user avatar
1 vote
0 answers
61 views

I create a user on the login page and hash this password with Argon2 but when I compare it, it does not match the password. The hashed password is shown in the database and I can also see the plain ...
Enes Şirin's user avatar
0 votes
0 answers
55 views

I have a simple expressjs app set up behind the Nginx server to take requests to upload the files. When uploading files without Nginx server, the upload progress is obtained through XMLHttpRequest ...
Waleed93's user avatar
  • 1,332
0 votes
0 answers
40 views

When I cache multiple Sequelize instances while sharing the same models (entities), the last cached instance in memory overrides the Sequelize instance of the models from the previous cache. for ...
Anandhu Suresh's user avatar
0 votes
0 answers
78 views

i have been trying to deploy a Node js app built using ES module in CPANEL but whenever i run the server i get this error from require Node.js v20.18.2 /usr/local/lsws/fcgi-bin/lsnode.js:48 var ...
Johannes Mwasanyila J Chriss's user avatar
0 votes
0 answers
59 views

I have an apache server that is reachable from outside my local network, named interfaceserver.com. I also have an express server in my local network, named localserver. In apache configuration of ...
tony_merguez's user avatar
2 votes
2 answers
222 views

While trying to run the application locally, browser is not able to load bundle.js: This is the setup to load bundle.js inside index.html: <script type="text/javascript" src="/...
mason's user avatar
  • 524
0 votes
0 answers
33 views

I want to be able to delete files from the Autodesk Viewer. When I delete them - I want them to disappear from my dropdown and not appear as "Model not translated". I was using the code from ...
Mahzabin Rashid Fariha's user avatar
0 votes
2 answers
113 views

I'm trying to test HTTPS on both my frontend and backend environments locally. On the UI, I'm using Nextjs and am able to easily add HTTPS to my environment using the --experimental-https parameter ...
Matthew G's user avatar
0 votes
1 answer
77 views

I try to do a login via a LocalStrategy in Passport, but the serializeUser and deserializeUser functions don't seem to be called at all. The versions of the ‘Relevant’ packages are: "express"...
Teyrox's user avatar
  • 315
0 votes
0 answers
97 views

const renderPost = ({ item }) => { const mediaUri = `http://10.50.99.238:5001${item.media_url}`; return ( <View style={{ padding: 10, borderBottomWidth: 1, borderBottomColor: &...
colonel bond's user avatar
0 votes
1 answer
50 views

const ErrorHandler = (err, req, res, next) => { logging.error(err); let message = 'An error occured, please try again.'; let statusCode = 500; const response = { success: ...
Hope 's user avatar
  • 11
1 vote
0 answers
416 views

At the moment I'm building an API on Express.js with ts-node. At first 30 mins - 1 Hour everything works fine, but after a couple of hours I'm starting getting error context deadline exceeded (Client....
slsforme's user avatar
0 votes
2 answers
70 views

Here is the code for the index.js of my expressjs project. I'm new to Node.js and trying to understand how to develop a web app using MERN Stack. import express from "express"; import ...
Hashibul Hasan's user avatar
0 votes
2 answers
109 views

I have a Typescript project and I get the following error. [auth] [ERROR] 09:55:34 ⨯ Unable to compile TypeScript: [auth] src/app.ts(3,27): error TS7016: Could not find a declaration file for module '...
Svaris's user avatar
  • 29
0 votes
2 answers
69 views

I set cookies in NodeJS with the following code: const session = require('express-session'); const MongoDBStore = require('connect-mongodb-session')(session); const max_session_ms = 365 * 24 * 60 * ...
ginjaemocoes's user avatar
  • 4,662
1 vote
1 answer
43 views

I set up a simple form input page where after submitting the form, the same form data would be displayed as entries under. const express = require('express'); const router = express.Router(); const ...
Caleb Jawa Hkun's user avatar
0 votes
0 answers
38 views

I was making this application using MERN stack. But what I want to know is, how are multiple images persisted in my mongoDB atlas, and how do I fetch them sequentially. I came up with an idea to store ...
Isru_Crasus's user avatar
0 votes
0 answers
36 views

require('dotenv').config(); const Agent = require(`./Models/agentModel`); const logger = require(`./logger`); const adminRoom = 'admin-room'; const socketapi = { io: null }; function setupSocket(...
Manish Pandey's user avatar
0 votes
0 answers
65 views

About my architecture: I have a backend with Express.js and a frontend with Next.js. I have massive problems with my CSRF cookie. I create it in Express.js and send it to Next.js (Client). Here it is ...
Hannes's user avatar
  • 11
0 votes
0 answers
29 views

Say the following layers controllers try { } catch () business (services) try { } catch {} database (repository) try { } catch {} suppose when a exception occurs in database layer caught in catch ...
Tarakesh Pulikonda's user avatar
1 vote
1 answer
52 views

I have a Vue 3 app hosted on Netlify, and the backend is hosted on Heroku. The login is a simple /login endpoint made with Express and Sequelize. It works well on desktop, but when I try to log in on ...
Luis's user avatar
  • 9
0 votes
1 answer
80 views

I have a node.js / express project and I try to implement http-proxy-middleware like this : const app = express(); ... // 1st : `/mainUrls/*` are processed by the main app app.use("/mainUrls"...
gduh's user avatar
  • 1,212
0 votes
0 answers
45 views

I have an Express.js backend running on http://localhost:8000 and a Next.js frontend (App Router) running on http://localhost:3000. What Works: • When making a request from a Next.js client ...
Giorgi Shalamberidze's user avatar
0 votes
1 answer
108 views

I'm struggling while implementing authentication in my Express application using Passport.js. First of all here are all my packages' versions and my config: "passport": "^0.7.0", &...
AkaMirai9's user avatar
-2 votes
1 answer
80 views

As I implement passport's Google OAuth2.0 strategy, I realized I need the callback to hit the server, then from there, I can redirect to a different page depending on if the user needs to finish ...
LUKER's user avatar
  • 532
-1 votes
1 answer
55 views

Stack: backend(NestJS, Redis, Postgres), frontend(NextJS) I got backend running on vps server with nginx configured on domain https://backend.exampleurl.com and frontend running on same domain https://...
Temirlan's user avatar
0 votes
1 answer
243 views

I am currently working on an express app (API) which I now want to convert to use the serverless framework so I can deploy on AWS Lambda. I have done this before and did not have too many issues. I ...
dividebyzero's user avatar
1 vote
1 answer
249 views

I have express.js based server and working on implementing etag HTTP header. So, I find out express has already etag and 304 status code implementation enabled. I was going through the code as found ...
Gourav Aggarwal's user avatar
0 votes
1 answer
67 views

Having a really hard time setting up a breakpoint for debugger in VSCode to a very simple express project which uses tsx. I have 3 files inside my src directory src/app.ts import express, { ...
PirateApp's user avatar
  • 6,362
1 vote
2 answers
72 views

Description: I’m building a room booking system in React with React Router v6. When a user clicks on a booking link (/book/:roomId), if they are not authenticated, they should be redirected to the ...
Suhail's user avatar
  • 113
1 vote
3 answers
2k views

I'm working with a TypeScript project where I have two files: index.ts - This file contains the main application logic. index.d.ts - This file is where I declare global types. In my index.d.ts, I'm ...
Naga mani kanta manam's user avatar
0 votes
1 answer
62 views

I want to add userName property to Request object in express using type declaration file .d.ts to be able to set it through middleware and use in other routes. here is my /src/types/index.d.ts export ...
Chirag Patel's user avatar
1 vote
0 answers
286 views

am integrating PayPal's REST API for processing payments in my React.js application, using the sandbox environment. While creating an order works fine, capturing the payment fails with the following ...
Mahmoud Alaa's user avatar
-1 votes
1 answer
104 views

I'm currently building a node.js server application and getting this error message in the server console: $ tsc && webpack && DEBUG=express:* node --trace-warnings --unhandled-...
Gerrit Addiks's user avatar
2 votes
1 answer
1k views

I'm trying to use Zod to perform Schema Validation on a FormData Object which has multiple files (HTML file input element with multi-select) in an Express App. When the Schema is validated, it appears ...
RobertFrenette's user avatar

1
3 4
5
6 7
1900