Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
11 views

Nodemon Crashes with 'bad ELF magic' Error on Termux in Android

I'm using Termux on my Android phone to run a simple Node.js server with nodemon. My server script (index.js) is written in JavaScript and should work fine, but when I run it with nodemon, I get the ...
Muhammed Shibil M's user avatar
0 votes
0 answers
13 views

How to deploy Node.js server on Vercel properly?

I am new in Next js and also in MERN stack; recently I have completed a mern stack LMS (Learning Management System) website using Next js for client (front end) and Node.js , Express, TypeScript for ...
Asm Nahin's user avatar
0 votes
0 answers
9 views

405 Error or 401 Error (sometimes) on Stripe Endpoint with Next.js, Vercel, and PM2: Unable to Create Checkout Session

I'm integrating Stripe into my Next.js application deployed on Vercel. The goal is to create a checkout session through a POST request to the /api/stripe/create-checkout-session endpoint. However, I'm ...
SilentCraftsman's user avatar
0 votes
0 answers
13 views

Http-proxy-middleware causes server to crash

I set up a proxy server for resource protected endpoints and I am using http-proxy-middleware. The problem is that when I get the response the server crashes with the following error: TypeError [...
John's user avatar
  • 1
0 votes
0 answers
12 views

Is it possible to use auth.js with express.js as a standalone REST API server?

Use case when client-frontend is developed separately using pure react, to consume backend Auth.js + Express.js API. Thing that confuses me the most is that Auth.js (next-auth.js) 'authorize' callback ...
iklen's user avatar
  • 46
0 votes
0 answers
9 views

GraphQL subscription events not published

I am struggling to get a GraphQL server that uses graphql-js, express, graphql-http and graphql-ws to publish events. GraphQL http requests works and I can connect a websocket but events are not being ...
jmc42's user avatar
  • 405
0 votes
1 answer
16 views

How to fix typescript error @types/express-serve-static-core/index has no exported member

I'm facing these errors after changing node from 14.18.0 to 20.16.0: ../node_modules/@types/express/index.d.ts node_modules/@types/express-serve-static-core/index"' has no exported member '...
anayarojo's user avatar
  • 1,199
0 votes
1 answer
41 views

React client 401 unauthorized when trying to reach the server

I'm working on my first react App right now, which uses the Spotify API. But I ran into troubles with the Authentication Process. Mainly the Problem is that my custom Hook useAuth, responsible for ...
macbas's user avatar
  • 3
-1 votes
0 answers
13 views

How to fix missing spans in AWS Lambda function running an Express app

I am trying to implement Signoz (https://signoz.io/) and running signoz locally(as shown in image). I am able to get traces but getting missing spans in traces. I am using AWS Lambda function running ...
Man's user avatar
  • 15
-4 votes
0 answers
22 views

How to fix error 500 FUNCTION_INVOCATION_FAILED

So I created a simple API Website that can calculate like add, subtract, multiply and divide. Using express.js and ts-node and I hosted it on Vercel. Once I created /api/index.ts, and installed the ...
Syaamil Maulana's user avatar
-1 votes
0 answers
21 views

how to prevent duplicate keys into database with mongodb and expressjs

i am working a crude project with mongodb expressjs and pug(formerly knone as jade) i am stuck on preventing duplicate keys both on Front-end and backend. this is what i did.... let mongoose = require(...
Obi Apostle's user avatar
-1 votes
0 answers
22 views

Hosting a peerjs server on iisnode, client side unable to connect status "Finished" the status should be "101", not sure why this is happening?

So I have built a WebSocket server on ws and this works perfectly for sending basic messages. What I wanted to do next was create a peer to peer calling service using PeerServer server side and PeerJS ...
Hilton Siegert's user avatar
-2 votes
0 answers
31 views

HOW to improve this node express server code and its code ? and how to improve the recurring notification api [closed]

Title: Why is my API endpoint not pushing FCM notifications with schedule? Body: I'm working on a Node.js/Express API endpoint to schedule push notifications using Firebase Cloud Messaging (FCM). ...
Red Neck's user avatar
0 votes
0 answers
11 views

Delete request to idrive e2 not working on VPS

I have a function that uploads images to idrive e2 and another to delete it. uploads work perfectly. Delete gives 404. const response = await axios.post(`https://api.heartstribute.com/api/...
Yuri's user avatar
  • 1
0 votes
0 answers
20 views

Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available, while using vercel/pkg and pm2 in nodejs

I have a NodeJS CLI application built using commander, I am using vercel's pkg to create executables. Now, I starting a localserver using express on a particular command like this:- program ....
Vivek sarvaiya's user avatar
0 votes
0 answers
17 views

Issues sorting with Sequelize

I'm attempting to sort a code that has includes from multiple models, but it just won't work. static async get(queryParams) { const { search, customer_id, ...
Christoffer Madsen's user avatar
1 vote
1 answer
32 views

Separating routes into different modules

I've been putting my all routes into one server.js file, after a while i realised there is about 1000 lines in one file and it is hard to manage it. The question is there a simple way to seperate ...
V4lis's user avatar
  • 15
-1 votes
0 answers
19 views

How can I implement a shareable link feature for notes in a simple notepad web app? [closed]

I’m building a simple notepad web app called Bloco de Notas Online where users can create and save notes. I want to add a feature that allows users to generate a shareable link for their notes. The ...
Antonio's user avatar
0 votes
1 answer
24 views

Retrieving a Single Numeric Device ID from a Mongoose Schema

How can I retrieve the deviceId as a single numeric value in my Mongoose schema and Express.js controller? I'm using Mongoose with Express.js to save car records, and I've defined a deviceId field as ...
Spacewalker_vir's user avatar
-1 votes
1 answer
26 views

How do I display loading screen while EJS is rendering content

I'm making website using NodeJS, Express JS and EJS. In some pages, they need to execute lots of database queries and it should take long time. I want to display loading screen during this time, ...
KaizOffical's user avatar
0 votes
0 answers
40 views

Node js error Streaming Application in Node [closed]

node:internal/modules/cjs/loader:1228 throw err; ^ Error: Cannot find module 'express' Require stack: - C:\Users\Khan\Documents\project 7\index.js (node:internal/modules/run_main:174:12) { code:...
KHAN UMAIR's user avatar
-1 votes
0 answers
19 views

Google Auth2.0 API rejects with IdentityCredentialError: Error retrieving a token

I'm using Google Auth 2.0 with a React frontend and ExpressJS/Node backend. I am trying to send an email using NodeMailer, but first I have to authenticate the user using the Google Auth 2.0 service. ...
Ethan Sroka's user avatar
-2 votes
0 answers
9 views

building a monitorng screen for multiple node scripts [closed]

I have multiple node tasks running concurrently. Each uses express to display a browser status page with different counters and metrics. How can I build one main screen that will show info from all of ...
user1480192's user avatar
-2 votes
1 answer
83 views

What this mean : "TypeError: Cannot read properties of undefined (reading 'toLowerCase')" [closed]

When I submitting answer then this line apprise in page and console: TypeError: Cannot read properties of undefined (reading 'toLowerCase') at file:///***/index.js:48:31 Here is my code : app.post(&...
alita_lol's user avatar
-4 votes
0 answers
26 views

Node js cancel request when user leaves page [closed]

When a user goes into a page it makes some requests, etc. to load data for a table, or in a dashboard to load multiple information. Is there a point to detect if the user has left the page in order to ...
Pate's user avatar
  • 55
0 votes
0 answers
39 views

Express js module not found error and node modules files not creating

I ran the npm init command in the folder I was working in. Then, I ran the npm install express command. Two files named package-lock.json and package.json were created in my folder, but the ...
janberk.cetgin's user avatar
1 vote
1 answer
27 views

Facing Angular resolver error after fixing "Cannot Get" problem

Not a long ago I've deployed my project. Only after deploying I realized that I have this "Cannot GET" problem when refreshing my page: Cannot GET / on page refresh with express I've fixed ...
librogil's user avatar
  • 153
1 vote
1 answer
62 views

Fetch request does not work with expressJS server (but both are working fine)?

I have a fetch request in a server component in a NextJS app. It looks like that (I tried to reduce all code to minimum working example) : export async function bookRoom(params: BookingRequest) { ...
user27054072's user avatar
0 votes
0 answers
31 views

Errors raised in the BodyParser middleware not propagated to interceptor

I have a NestJS application that is using the express' built-in BodyParser middleware to limit the request size. I've created a global interceptor to transform various errors and exceptions, and have ...
Guy Grin's user avatar
  • 2,024
-3 votes
0 answers
38 views

API to create recurring notifications in Firebase node express [closed]

Title: Why is my API endpoint not pushing FCM notifications with schedule? Body: I'm working on a Node.js/Express API endpoint to schedule push notifications using Firebase Cloud Messaging (FCM). ...
Red Neck's user avatar
1 vote
2 answers
25 views

Issues with Stripe webhook and raw request body

I’m implementing Stripe webhook integration on my Node/Express.ts backend running on Firebase Cloud Functions, and I’m struggling to pass the raw req.body during signature verification. I’ve made a ...
Aurora's user avatar
  • 169
-1 votes
0 answers
17 views

Is requesting to server API indefinitely a good practice or not?

useEffect(() => { api.get("/note/getPinnedNotes") .then((response) => { setPinnedNotesArray(response.data.pinnedNotes) }) ....
Mayank Kumar's user avatar
0 votes
1 answer
41 views

why does it open with any pass after i use the correct password once? [closed]

I have 2 HTML files, one with just a form(which takes in a password) and one with secrets. I wrote this js code but when I run it, it refuses every wrong password until I put the correct password once ...
Bhawesh Pandey's user avatar
0 votes
0 answers
18 views

Unable to implement mfa in Supabase

I am using supabase to implement MFA in my auth but always encounter "Missing Sub Claim error" I use custom claims during signup to store mfa status and factor ID during mfa enroll during ...
Kartic Joshi's user avatar
-2 votes
0 answers
10 views

Toolforge hosted server stopped by UID = 0 PID = 0 [closed]

Each times it reaches the oauth callback url it shows this message: The web service for this tool is running but cannot be reached. Please check the error logs of your web service. And the error log ...
maruf hasan's user avatar
0 votes
0 answers
27 views

Error if refreshed from any other page (or route) other than "/" in react application created with vite@latest (Under deployment on Vercel)

I have developed a single page react app using vite@latest, my problem is that: If I refresh from the "/" page (or route) then nothing goes wrong, BUT if I refresh from a page(or route) ...
Sudip Sarkar's user avatar
0 votes
1 answer
23 views

Node Express server returning EADDRNOTAVAIL error when trying to host on 192.168.0.90:3000

when trying to run: app.listen("3000", "192.168.0.90", () => { console.log(`Server running at http://${hostname}:${PORT}/`); }); it returns the error: Error: listen ...
soda's user avatar
  • 17
0 votes
0 answers
19 views

Requests not being forwarded via corporate proxy

I've put together an ExpressJS proxy server, that uses http-proxy-middleware to make the request to the destination that we want to go to. The proxy server works fine, but only when I'm working from ...
bengrah's user avatar
  • 595
0 votes
2 answers
32 views

ExpressJS res.render is not a function

I've searched on google but not yet found an answer so I write here. I am new in ExpressJS so this is my first Express application. Here is my router: loginRouter.post('/login', loginController.index) ...
Bapholin's user avatar
0 votes
2 answers
27 views

GoogleApis - JavaScript heap out of memory

I am building a service that integrates Google Apis using NodeJs with Express. Everything works fine on my local environment, but when I try to deploy it to my EC2 instance, I get a JavaScript heap ...
IlyesHadji's user avatar
-4 votes
0 answers
41 views

Angular Nodejs Incorrect Login or Password

I'm trying to figure out the best way to handle login(incorrect username or password). When user logs in I do my authentication on server side which works the way it is suppose to, if incorrect ...
user2280852's user avatar
-1 votes
0 answers
21 views

passportjs + googleoauth20 + express-session (valkey store optional) req.user undefined

I'm so tired i spent the whole day trying to fix it but no matter what i do it's not working all i get is undefined PLEASE PLEASE HELP!!!! I Uploaded All The code On GitHub https://github.com/Parag-47/...
Parag Yadav's user avatar
-3 votes
0 answers
26 views

Does sequelize sanitize enough inputs? [closed]

I was wondering since I use Sequelize for all my queries. Should I even bother sanitizing inputs since Sequelize handles that? If yes, In what specific I do need to sanitize the inputs? And since I'm ...
Marko's user avatar
  • 1
0 votes
0 answers
34 views

No 'Access-Control-Allow-Origin' header is present on the requested resource Error while fetch works fine during login with the same cors options

I'm trying to send a post request to my server using fetch but it is constantly getting blocked by cors policy. However when I used fetch during user login, it was working fine. And this issue popped ...
Ritesh Das's user avatar
1 vote
1 answer
19 views

GraphQLError: Syntax Error: Expected Name, found "}"

Creating an application using various tech stake. first time using garphQl in my project. I am getting this error and not know how to solve this error. I have try various chatbot support, stack ...
Mikey's user avatar
  • 11
-1 votes
0 answers
32 views

Node.js Application Runs on All Domains, How to Restrict It to Only One Domain

I am running a Node.js application, and it is currently running on all domains on my server. However, I want it to run only on a specific domain. It should not be accessible from other domains. My ...
Musa Gökcan's user avatar
0 votes
0 answers
24 views

WebSocket Connection Error Between Frontend and Socket Server AAPANEL

Fix error WebSocket connection to 'wss://omegae.online/ws' failed: I need assistance with a WebSocket connection issue between my frontend(omegae.online) and Socket.IO(socket.omegae.online) server. ...
Thành Sơn's user avatar
-3 votes
0 answers
20 views

what is the best secured way to send data from backend? [closed]

what is the best way to send secured data from backend? I'm trying to send user data to frontend using secure cookies. return res .cookie("accessToken", newAccessToken, { httpOnly: ...
giorgi shvangiradze's user avatar
0 votes
0 answers
19 views

ForbiddenError: invalid csrf token at doubleCsrf

First off, sorry this is a re-upload. reason being is I'm an idiot... I'm creating a dummy social media app using express JS and Mongoose. I tried to implement sessions and CSRF protection but I am ...
kieron Coombs's user avatar
0 votes
0 answers
34 views

Slow chunk file Upload Speeds with Nginx and Node.js Despite Low Server Resource Usage

I've been struggling with slow upload speeds when handling file uploads through an Nginx reverse proxy to a Node.js (Express) backend. Despite the server having plenty of resources available (low CPU ...
Alex Aung's user avatar
  • 3,029

1
2 3 4 5
1916