Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Meta WhatsApp Cloud API: "(#100) Invalid parameter" error while sending template message in Node.js

I'm trying to integrate the Meta WhatsApp Cloud API in my Node.js + Express project to send a registration confirmation message after a user signs up. However, I am encountering an error: (#100) ...
Sujay K C's user avatar
0 votes
0 answers
12 views

Express.js with HTTP/2 (SPDY) - net::ERR_HTTP2_PROTOCOL_ERROR in Chrome Only

I have a Node.js server using Express.js with SPDY to enable HTTP/2 requests. The goal is to handle more concurrent streams than HTTP/1.1 allows. Setup I'm using SPDY to create an HTTP/2 server: ...
Muhammad Ahmed Habib's user avatar
0 votes
1 answer
16 views

Where do I find server response data in socket.io-client?

I am interested in creating (for testing purposes) a fake client that mimics a browser accessing a route in a Node.js HTTP server. In the minimal example below, I am able to point an actual browser to ...
P. Lewis's user avatar
-1 votes
0 answers
19 views

Creating and managing multiple instances of whatsapp web js in Nodejs app

I want to create and manage multiple instances of whatsapp web js exactly as mentioned in the below post: Creating and managing multiple instances of whatsapp web js I got the source code of the "...
Muhammad Imran's user avatar
0 votes
0 answers
27 views

Express.js Server not listening

I am trying to run a backend server which communicates with the frontend. My frontend works fine. when I run node server.js in the terminal i get this message When i try to check if the server is ...
user14's user avatar
  • 9
-4 votes
1 answer
50 views

"Insert record if not present " logic is not working for some request if we hit 100 request per second in Node Express Application

I have made an POC application, where the requeirment is to insert the reocord if ther is no record present in the db. This logic is not working if we hit 100 request per second with same data. For ...
Chinmoy Samanta's user avatar
-2 votes
0 answers
22 views

index.js served extremely slow from webpack-dev-server on Windows 11 [closed]

This is a very strange problem. For some reason linux and mac hosts are totally fine, but on Windows 11, when we serve our large SPA with webpack-dev-server, the transfer speed for the index.js is ...
Novaterata's user avatar
  • 4,805
0 votes
0 answers
30 views

Clover POS payments API response

POSTMAN response for payment API Hi, I am developing a clover reporting software using clover platform API's. My client has provided me with a detailed report using the clover dashboard. Below are the ...
Hasaan Ali's user avatar
-1 votes
0 answers
30 views

NodeJS microservice architecture slow under load

To start with I'm not the one who created and setup the architecture, but forced to currently "fix" the problem. It's a 10+ ExpressJS microservices + API Gateway running as docker containers ...
gpavlov's user avatar
  • 105
0 votes
1 answer
18 views

Shopify OAuth Redirects to Online Store Orders Page Instead of Custom URL

I'm implementing Shopify OAuth for customer login in my custom Shopify app, but after authentication, Shopify redirects users to the store's orders page instead of my specified localhost:3000/account ...
yerrapragada011's user avatar
0 votes
0 answers
27 views

Server not receiving httpOnly Cookies (Node.js - Express)

I have kind of a weird problem: Using nginx and node.js with express, i set up two services on the same machine with multiple server blocks. One of them is an authentication server (i want to build ...
Leuchtkeks's user avatar
0 votes
0 answers
34 views
+100

Firebase Dynamic Links losing app parameters in Capacitor Browser redirect chain on Heroku

I have a weird issue with Firebase Dynamic Links in my Capacitor app. When using deep links to authenticate users via SAML, it looks to be losing specific URL parameters but only in my staging ...
J.Do's user avatar
  • 201
-3 votes
0 answers
45 views

React app doesn't load if the page is refreshed? [duplicate]

I am developing a webbapplication using a MERN stack with React being the frontend. The App.js returns a React Router: return ( <div className="App"> <Router> ...
user28751094's user avatar
-3 votes
0 answers
50 views

Why am I getting error: is not a function? [duplicate]

I have: /services/db.js import mysql from "../node_modules/mysql2/promise.js"; import config from "./config.js"; async function query(sql, params) { const connection = await ...
Crowdpleasr's user avatar
  • 4,028
0 votes
1 answer
63 views

Getting Error code 404 from Phone Pe PG Integration via Web Flow in Express |Node JS

I am integrating Phone Pe Payment Gateway on my Web Application. Getting response as 404 from Phone Pe API {"success":false,"code":"404"} On the Backend I have done the ...
Aftab Ahmed's user avatar
1 vote
1 answer
31 views

Why is this Express Router catchall route overriding a route above it?

I can't figure out why this routing configuration, with eRouter being an express.Router() defined in an index.ts and passed in, is causing the top route of GET /wzdx/DeviceFeed to be overwritten and ...
jrkinnard's user avatar
0 votes
0 answers
35 views

How to integrate RabbitMQ in existing API calls

I have built an API endpoint to send mails based on Express. I currently call it using Axios when it is required making a post request directly to the route defined. So far so good. Now I am trying to ...
Lelio Faieta's user avatar
  • 6,684
0 votes
2 answers
40 views

Express middleware to intercept responses and compare results

I'm writing middleware in NodeJS with Express API. I want to grab the response body and compare it with the results of another microservice. This is part of a process of replacing the current API. I'm ...
Gabriel Baierle's user avatar
-2 votes
1 answer
49 views

Is Mongoose really an ORM, or is it something else? [duplicate]

I keep hearing people say that Mongoose is an ORM for MongoDB, but I thought ORMs are for relational databases like MySQL or PostgreSQL. Since MongoDB doesn’t use tables and rows but instead works ...
Rao Imtinan's user avatar
0 votes
1 answer
32 views

How do I redirect a user from a certain page to another in Backend?

I am creating a Full-Stack website, but I have a slight problem when it comes to entering back to my index.ejs, as I want my Backend code to automatically redirect the user from "myPage/index.ejs&...
Vishesh's user avatar
  • 18
1 vote
0 answers
81 views

Setting cookie's domain causes TypeError: option domain is invalid

Follow-up from Express session loses passport user ID on a Safari cookie every week . In Express and NodeJS, I want to set a cookie's domain so user agents see it as a first-party cookie. If I set it ...
emonigma's user avatar
  • 4,436
0 votes
0 answers
67 views

Name of video still "video.mp4" after downloading using yt-dlp

I'm using yt-dlp in a Node.js Express application to download videos from YouTube. I'm extracting the video title and using it to name the downloaded file, but all downloaded files are still named ...
Mohamad Karbejha's user avatar
0 votes
0 answers
39 views

I made a website for my conlang, and am having issues with multiple translations being displayed on pages [closed]

I created a conlang with my friend and we decided to make an online dictionary for it. All of the pages are dynamically generated using node.js, express, and handlebars. The data for the pages are ...
MCL_Playz's user avatar
2 votes
0 answers
72 views

How can I efficiently process large PostgreSQL datasets in Node.js without high memory overhead?

I have a Node.js application that interacts with a PostgreSQL database containing millions of users. For a specific feature, I need to fetch around 100,000 users based on a criterion (for example, ...
Nightcrawler's user avatar
  • 1,081
0 votes
1 answer
38 views

Checking if something exists

In trying to learn more about REST using node/express. I've noticed that in certain cases, like during sign-up, there are checks to make sure a user with that username / email does not already exist. ...
dRevan25's user avatar
0 votes
1 answer
19 views

Cookies are being deleted after a refresh

I've developed a client side with React and backend with Express. When I ran my application locally (on localhost), everything was working fine. 2 days ago deployed both my client and server into ...
Ben Ashkenazi's user avatar
0 votes
0 answers
88 views

How to send data from react js to a node js server?

So this is my server.js: const express = require("express"); const multer = require("multer"); const cors = require("cors"); const admin = require("firebase-admin&...
Gabi Moldovan's user avatar
0 votes
0 answers
13 views

keepSessionInfo for passport.js not working for versions 0.7-0.6?

Any calls made to my passport.authenticate() middleware deletes and recreates my req.session object. I need it to stay consistent because it's shared with my socket.io connection. After some digging I'...
chron1cle's user avatar
0 votes
0 answers
13 views

tplink-cloud-api error code: -23003 App Version is too old

I am trying to use the Kasa tplink-cloud-api in my Node.js Express application. When I try to authenticate, i.e., const tplink = await login(username, password, terminalUUID), I get the error code ...
Matt Melester's user avatar
-2 votes
0 answers
26 views

not receiving cookies from backend [duplicate]

I'm working on a React frontend and an Express backend, and I'm trying to send a login request using axios. However, the requisite does not include any cookies, even though I'm using withCredentials: ...
Noureddine's user avatar
1 vote
1 answer
41 views

Without modifying every route in my app, how can I obtain a list of all the routes that have been matched so far?

Some tangential questions have been asked already. but this seems different - I am asking for a way to nicely instrument Express 5.0, not predict matched routes. Related: How can I find the originally ...
Adam A's user avatar
  • 14.6k
0 votes
0 answers
25 views

Uppy Dropbox CORS issues

I am having issues with uploading using Uppy Companion that is hosted on my subdomain. I always get the preflight CORS error like this: Access to fetch at 'https://uppy.website.com/dropbox/get/%...
Vedran Korponajic's user avatar
0 votes
0 answers
36 views

Have this error with receiving a service password

I am creating forget-password route and have function to send service password to reset-password post method. this is my error: Reset Link: http://localhost:5000/reset-password?token=...
Luka Guledani's user avatar
1 vote
0 answers
19 views

safari block my session cookies from my express serveur

I'm working on a sort of my first saas to know how to build one, and I'm reaching the final steps. While everything was working well on chrome, I wanted to see how the responsive design looked like on ...
Hugo Senée's user avatar
0 votes
0 answers
20 views

Not redirecting to page [duplicate]

I was trying to redirect to login page after clearing cookies. But it is not redirecting. It's clearing cookies but redirecting. I was using in my index.js: router.post("/logout",(req,res)=&...
Md Mubin's user avatar
1 vote
1 answer
79 views

chai-http error Exception during run: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined

I have a problem using chai-http for testing, when I use npm test or mocha I get this error Exception during run: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\...\...
Osmaldy's user avatar
  • 13
0 votes
0 answers
32 views

Running express typescript development server throws TypeErrors but not when i build and run it [duplicate]

I have extended the native Express Request object using // types/express.d.ts import { User } from '../UserTypes'; // Ensure this is correct declare global { namespace Express { ...
Shreshth Purohit's user avatar
0 votes
1 answer
34 views

Expressjs application crashed on railway

when i build my application locally it runs perfect without any error but when build happens on railway it crashed and the reason is Unexpected token ";" it seems some kind of injection ...
Ahmed Abdelrahman's user avatar
-1 votes
0 answers
31 views

Why is my Server-Sent Events (SSE) connection delayed or not working with Nginx Ingress?

I am using Server-Sent Events (SSE) in a React frontend with a Node.js backend. SSE works perfectly when calling the API directly (e.g., via curl or direct browser request), but when routing through ...
Ananthu T D's user avatar
0 votes
0 answers
11 views

Error ENOENT: no such file or directory using NeDB database on node.js

const usersDBPath = path.join(databaseDir, "users.db"); const transactionsDBPath = path.join(databaseDir, "transactions.db"); if (!fs.existsSync(usersDBPath)) { console.log(&...
Marcelluxx's user avatar
0 votes
1 answer
81 views

Uncaught SyntaxError: The requested module does not provide an export named 'Redis' in ioredis

I am using ioredis in my Node.js + Express project with ES modules ("type": "module" in package.json). When I try to import Redis like this: import {Redis} from "ioredis";...
Rakesh Nagarkar's user avatar
1 vote
1 answer
29 views

How to make worker_threads in an express app deal with request and response object?

I want to make worker_threads in an express app deal with request and response object so that the main thread of the process is free to accept the next incoming request. I know clustering is a way ...
Niladri's user avatar
  • 21
-4 votes
1 answer
48 views

Axios api post request not working after 7th try [closed]

My code is set to post a axios request after a set period of time. Every time it gets to the 7th iteration, no post request is being made and recieved by the backend. its not a rate limit problem or # ...
Byrie's user avatar
  • 29
0 votes
0 answers
53 views

Cookies in not set in the Header when make an api call

i know this question is asked many time but still the answer of this question is not working for me this is my language service file when i am post request for login than it is work for me that ...
Rinkal's user avatar
  • 71
0 votes
1 answer
51 views

Can't display user data from database

I want to get data from database and display it in html code through <%= %> tag. // index.js const express = require('express'); const router = express.Router(); const { ensureAuthenticated } = ...
Stefan's user avatar
  • 1
0 votes
0 answers
42 views

How to correctly and efficiently set up transitions between pages on a website

This is a server import express from "express"; import path from "path"; import fs from "fs"; import adminRoutes from './routes/adminRoutes.js'; import clientRoutes from ...
Air's user avatar
  • 203
0 votes
1 answer
51 views

Why my axios get method isn't updating my react useState?

so the code of my app.jsx is import Navbar from "./components/Navbar"; import TodoList from "./components/TodoList"; import Authentication from "./components/Authentication&...
nxn_404's user avatar
0 votes
0 answers
31 views

Using req.user with JWT make my app crash with express.js and Nodemon

I have a problem since yesterday and I still don't figured it out after many hours passed to try many solutions. I'm building an app using Typescript with Express.js and I'm using nodemon server to ...
Guillaume D.'s user avatar
2 votes
2 answers
52 views

Expressjs how to distribute static file loading depending on the path in the address bar

There is such a simple server import express from "express"; import path from "path"; import fs from "fs"; const __dirname = path.resolve(); const app = express(); app....
Air's user avatar
  • 203
1 vote
1 answer
49 views

middleware for authorization to perform certain actions

I have implemented an API that is protected by JWT authorization layer. So on each endpoint before calling it I check that the user has a valid token before proceeding. It works flawlessly. Now I want ...
Lelio Faieta's user avatar
  • 6,684

1
2 3 4 5
1552