Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-2 votes
0 answers
20 views

Why res.clearCookie() is not working after deploying to vercel?

First of all, everything works fine when running on localhost. However, after deploying the app to Vercel when the user tries to log out it should clear cookies with res.clearCookie() but it doesn't ...
Z-i-n-k-s's user avatar
-2 votes
0 answers
20 views

Server is started successfully but getapi is not loading in nodesjs [closed]

I am working on an Express.js application and encountered an issue with routing. Here is what I have done so far: Controller: exports.dummyLink = (req, res) => { res.send("this is your dummy ...
Rahul Raj's user avatar
0 votes
0 answers
14 views

How can I fix react hooks in a React SSR project?

I try to migrate an existing project in js using express and ejs to render templates. I used react and react-dom. But the issues are that hooks and onChange don't work. I'm going to share the client ...
Jorge Contreras's user avatar
-1 votes
0 answers
29 views

JWT expires after refreshing page

I created a authentication system and thus was setting a JWT token in a cookie. However when I refresh the page it is getting deleted, even though I am setting it's expiry to be 24 hours. jwt.sign(...
rushil ekhande's user avatar
0 votes
1 answer
39 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 ...
Nguyễn Nam Vinh's user avatar
0 votes
2 answers
33 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....
Alex Mckay's user avatar
  • 3,666
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....
Vicky X's user avatar
0 votes
0 answers
22 views

Delayed and incorrect updates from react context to backend

I am creating a food ordering application as project. Here, user can add items from a single restaurant only. If they tried adding items from another restaurant too, they will be shown an alert ...
Vidhi Mathur's user avatar
0 votes
2 answers
31 views

Why would my parent route in express not pass down the req.params object to its child route?

I'm building an express application that has a users table in its database and a friends table. The point of the friends table is to be a many-to-many table that keeps track of friend requests between ...
Crablub's user avatar
  • 11
0 votes
0 answers
23 views

Efficiently Remove and Replace Outdated Products in MongoDB with Envato API in Node.js

I have around 200,000 products in my MongoDB database. I need to write a script to remove products that are no longer available on Envato and replace them with new ones. I've written the following ...
Abdullah's user avatar
-3 votes
0 answers
30 views

Multiple User's are not being able to Connect to the WEBSITE [closed]

There is a problem in my backend that multiple users can't access the website at one's. If User1 login and a User2 arrives at the same time the 2nd User is seeing the interface of User1. So, What ...
Stiker's user avatar
  • 1
0 votes
1 answer
34 views

How to send several vars to client

I want to send to client many objects and one var, but i don't understand how to choose response that i want and create the var on client. Server code: var isAdmin = false; app.get('/main', async (req,...
PABLO _6612's user avatar
0 votes
2 answers
62 views

Error uploading node.js project on azure web app through Github CI/CD

I am uploading my node.js code on Azure web app. After a lot of try, I was able to successfully do it. I am building my code on Visual Studio and pushing to Github and using CI/CD connected to Azure ...
Basu's user avatar
  • 773
-4 votes
0 answers
44 views

After Running 'npn run server', this error arise [closed]

This Syntax Error is from vs-code terminal : > return new RegExp(path, flags); ^ SyntaxError: Invalid regular expression: /^function asyncUtilWrap(\.\.\.args) { const fnReturn = ...
Muhammad_Hussain's user avatar
-4 votes
0 answers
27 views

One particular route not working in express js and ejs [closed]

I am new to express and ejs and was trying to make a notes app, everything else is going all right but this particular route /files/:filename isn't working at all don't know why. Here is my express js ...
Devansh's user avatar

15 30 50 per page
1
2 3 4 5
2244