Questions tagged [express]
Express.js is a minimal and flexible Node.js web application framework providing a robust set of features for building web applications.
express
95,778
questions
0
votes
0
answers
9
views
calling axios multiple times
I am trying to make a fetch function where upon fetching the transaction data, it will run a payout function to pay the person, and then it will update the transaction data value 'go' to false so that ...
-1
votes
0
answers
7
views
template inetgration options other than template engine
I am working on an Express.js project where I need to replace placeholders in an HTML file with data from a JSON file. However, I want the HTML file to look like an actual page instead of having ...
0
votes
0
answers
22
views
How to properly package a Node.js and React app stripping the container of all unneeded files?
I have a Node.js backend that serves up the React frontend (later I can do CDN probably) and for now, I plan on disallowing CORS so React must talk to my Node.js backend only. The prototype for this ...
0
votes
0
answers
5
views
Error with Express.js library with res.cookie, res.json, res.status, req.headers
Errors appear in the code:
Property 'cookie' does not exist on type 'Response any, Record string, any
Property 'json' does not exist on type 'Response any, Record string, any
Property 'status' does ...
-3
votes
0
answers
18
views
Good day. I'm Asadbek from Uzbekistan [closed]
I'm working on ejs express project and why when i set url to route handler like /contract ejs is being rendered properly but when i set api like /all-org/contracts is not rendring properly.
My routes ...
0
votes
0
answers
6
views
Ngxin does not return real ipv4 behind cloudlfare (nginx+express+cloudflare)
I want to get ipv4 of clients instead of ipv6
And I use express in nodejs and my domain behind cloudflare
This is my nginx:
server {
server_name xxx.xxx.xxx www.xxx.xxx.xxx;
# cloudflare
...
0
votes
0
answers
24
views
CORS error with deploying an express js server with vercel
Followed the instructions here to run an express server but I'm dealing with CORS errors when calling the backend via my next js app.
How can I make this work? Suggestions for alternate deployment ...
-4
votes
0
answers
15
views
new user should not overlap start and end date with existing users node js [closed]
I need to write code in nodejs.We have array of users
GET /listUsers
here is the list
{
"users": [
{
"userName": "John",
"...
0
votes
0
answers
21
views
Getting 404 AxiosError: Request failed with status code 404
Could you please help me to solve the problem with the routes.
In result I have the next code:
// server/index.js
// server/index.js
const express = require('express');
const bodyParser = require('...
-1
votes
0
answers
15
views
ObjectId() gets depreciated
whenever I am using new mongoose.Types.ObjectId(id) object id gets depreciated and I am getting this - The signature '(inputId: number): ObjectId' of 'ObjectId' is deprecated.ts(6387)
bson.d.ts(1247, ...
0
votes
0
answers
17
views
Shopify Customer Account API: "client_id invalid" Error on Authorization Request
I'm trying to implement the Shopify Customer Account API following the Shopify documentation here. I'm currently working on the authorization step, where I need to redirect a customer to the login ...
0
votes
2
answers
31
views
Stripe CLI trigger subscription failed event for a specifc customer
Evening,
When a user signs up for a subscription the checkout.session.completed event is fired and I can test that everything is working correctly via the CLI command: stripe trigger checkout.session....
0
votes
0
answers
15
views
Why does clearing all sessions make my NestJS app unresponsive?
I have a NestJS app, with a special Admin route I want to be able to call to clear out all user sessions (for example: after we deploy a new version of the application so we can kick everyone out).
I ...
0
votes
1
answer
27
views
req.headers.auth is undefined In jwt and express js
I'm new to use jwt library ..
So I made a login form and if it success it generates token and verify but it generates token and respond that token , but I can't get that token in req.headers....
0
votes
1
answer
23
views
Auth Setup for NextJS frontend and ExpressJS backend with MongoDB
I am building a full stack app with Next JS frontend and Express JS backend with MongoDB as the database. I want to implement authentication using email and password, as well as with Google Provider. ...