95,528 questions
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) ...
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:
...
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 ...
0
votes
0
answers
14
views
Generating PDF with Puppeteer: View Not Fully Captured and Leaflet Tiles Not Fully Loaded
I have an Angular application that contains only a Leaflet map. I've built an Express.js server using Puppeteer to capture the map and generate a PDF.
I pass the zoom level and map layer as URL ...
-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 "...
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 ...
-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 ...
-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 ...
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 ...
-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 ...
1
vote
2
answers
30
views
Cookies (set-cookie header) lost after ~90 seconds of idle when post request is from external source. Express + express-session example
I have experienced very strange behavior of set-cookie header in request.
Tried to deal with some api 3ds calls in payments online system, when need to redirect user in another tab/window and then ...
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 ...
0
votes
0
answers
42
views
Firebase Cloud Functions CORS Issue When Using Credentials
I'm encountering a CORS error when I set my frontend API calls to include credentials. Without credentials, the requests work fine. However, once I set credentials: 'include', I no longer receive any ...
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 ...
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 ...
0
votes
0
answers
9
views
I keep getting a 404 when rendering css folders on railway
Whenever I try to host my express app on railway it gives a 404 when i try to get my CSS files. This is my file structure:
Public - styles.css, output.css
Views (index.ejs etc) - Partials (head.ejs):
&...
0
votes
0
answers
39
views
JSON object parsing got broken after upgrading NestJS from 10 to 11
I've got a NestJS application with simple POST endpoint:
@Post()
@HttpCode(HttpStatus.CREATED)
public async create(@Body() model: SerializedModel, @Req() req): Promise<SomeDto> {
const ...
-5
votes
0
answers
32
views
I had this issue when I try to connect mysql server in window 10 WAMP server
const mysql = require('mysql2');
const express = require('express');
const bodyparser = require('body-parser');
var app = express();
app.use(express.urlencoded({
extended: true
}));
app.listen(...
-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>
...
0
votes
0
answers
16
views
Why is Express sending Access-Control-Allow-Origin on OPTIONS but not on PATCH?
I'm using a fairly standard Express backend and React (with Redux and Axios) frontend for an app. It's working perfectly in my local development environment. When I deploy it, most requests work, but ...
-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 ...
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 ...
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 ...
0
votes
1
answer
46
views
Google Cloud Run weird behaviour only for path /healthz
I'm deploying a container on Google Cloud Run, the container serves formally an Express server (NestJS).
In my application I declared 2 routes (and I tried with several names).
Every route responds to ...
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 ...
-2
votes
1
answer
16
views
Supabase edge function with framework 404 [closed]
I'm trying to use Express (or any other framework for that matter) with Supabase Edge Functions, however i'm getting a 404 when hitting any route that has been configured.
I followed the exact ...
-4
votes
0
answers
32
views
How to Implement a Multiplayer Matchmaking Server Without Persistent Sockets? [closed]
I am building a multiplayer matchmaking game server using Express.js where:
Clients join a queue and wait for enough players.
The server periodically checks the queue and tries to create a match.
...
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 ...
-1
votes
1
answer
58
views
CORS Issue: Auth Cookie Gets Deleted After Redirect from Login to Dashboard (Deployed on Render/Vercel) [closed]
Problem Description
I am facing an issue with authentication cookies getting deleted after redirecting from the login page to the dashboard in my MERN stack application. The application works ...
-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 ...
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&...
0
votes
0
answers
22
views
Connecting Expo to Firebase Functions backend through Axios
I'm having problems with my frontend, which is a React Native project using Expo for visuals. I'm using the Expo Go mobile app for the connection. My backend runs locally using Firebase Functions.
I'...
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 ...
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 ...
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 ...
0
votes
0
answers
21
views
ExpressJS msal-node handling multiple bearer tokens
I am writing an api gateway that reaches through Azure. So far I have been able to get a bearer token from msal-node, and then use that to retrieve a bearer token for the application but, now I am ...
-1
votes
1
answer
29
views
Swagger : No operations defined in spec!, Express Typescript on Vercel
I'm using Swagger, and everything was working perfectly on my localhost. However, after deploying my project to Vercel, Swagger no longer works at all. I encountered the following error:
Blank Page
...
-1
votes
1
answer
26
views
Error on Maptiler geocoding import method; tried Mapbox, but it requires the credit card info
I am new to backend development, and I am trying to use MapTiler's geocoding service to convert addresses into latitude and longitude (forward geocoding). My goal is to retrieve the latitude and ...
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, ...
3
votes
2
answers
52
views
Why does multer.diskStorage require a function for filename instead of a direct string?
const diskStorage = multer.diskStorage({
destination: 'uploads/',
filename: (req, file, cb) => {
cb(null, Date.now() + file.originalname);
}
});
why we cant assign file name ...
0
votes
0
answers
27
views
Next build can't resolve monorepo aliases. It's killing me
I am building a simple nextjs frontend with an express backend. I can run them both together in dev mode perfectly. But when I try to 'next build' the front package, there seem to be problems that I ...
0
votes
0
answers
29
views
Bundled Spring Boot React app on Cloud VM not able to access express server for images Failed to load resource: net::ERR_CONNECTION_REFUSED
I have a spring boot application bundled with React UI as fronend using
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
...
0
votes
0
answers
26
views
How do I create a deeplink for an Instagram Bio to bypass WKWebView or Android Webview and go straight to the user's default browser
I am looking to create a deeplink tool to use for myself to bypass the built in instagram browser and take the user straight to their default browser on their phone like Safari or Chrome. How is this ...
-1
votes
0
answers
20
views
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client, i tried changing the logs but not working
Ggetting this error in aws ec2 pm2 logs tho code working fine in localhost
TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/ubuntu/.pm2/pm2.log last 15 ...
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. ...
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 ...
0
votes
0
answers
41
views
Serving React application hoping through servers and using iframe
I have a scenario where I have two React applications. Application-1 opens Application-2 using an iframe.
I can access Application-2 either directly or through the Application-1 iframe. However, when ...
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&...
-1
votes
1
answer
31
views
Downloading Original File Instead of .SVF from Autodesk Viewer
I'm trying to allow users to download models directly from the Autodesk Viewer in my web application. I followed this Autodesk blog post and successfully implemented the functionality using signed ...
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'...