Questions tagged [nodejs-server]

405 questions
0
votes
0 answers

nuxt , vuex Does not return the loggedIn user information

I'm coding a test website with NodeJS . I use Vue and Nuxt for the client-side. I use the auth library of Nuxt JS for user signup. The problem is that in Vuex no logged in user is displayed and no user is logged in. My signup code is : …
farid
  • 1
0
votes
1 answer

Run a nodejs application on a bitnami lamp stack instance

I currently have a bitnami LAMP stack running hosting my website at www.uktransportprofiles.co.uk and I have a nodejs instance running at www.uktransportprofiles.co.uk:7200. However I want to proxy pass this so that the api can be found at…
Philip09
  • 85
  • 9
0
votes
1 answer

How to execute HTML-Events with NodeJS?

I need the Nodejs-fileserver for saving some text but I want to do this with a website written in html. How can I do something like this? Here is an example but there only comes the failure: 'book() isn't defined'. const http =…
goken son
  • 11
  • 1
0
votes
1 answer

AssertionError [ERR_ASSERTION]: PORT is required (when starting node js as a windows service)

The project runs without any errors when run from Visual Studio Code by runung the cmd : npm start. But when runing the project as a windows service I´m getting an error about the PORT. The PORT=8080 is initialized in the (Environment file) env.…
0
votes
1 answer

NodeJs Proxy Issue forwarding POST/DELETE requests

I'm trying to create a NodeJs Proxy, the request works fine for "GET" requests, tho it fails when I try the same but with "Post"/"Delete" Requests. I am not sure to wether is it related to frontend or to backend:( Would you have any idea of how to…
Victoria
  • 165
  • 1
  • 12
0
votes
1 answer

CORS Failure in Nodejs Expressjs with blob send

We have recorded audio in browser using Angular 9 app and pass it to nodejs API with expressjs. app.use(bodyParser.json()); app.use(cookieParser()); app.use(cors()); Whenever I send an audio record(blob) more than an 8min record. It starts…
Gopalakrishnan
  • 957
  • 8
  • 19
0
votes
1 answer

Cron expression of every 3 minutes between specific time

Here is the scenario:- I want to run a specific function in my NodeJs application and for that i am using NodeScheduler I know i can use this expression */3 8-15 * * * for every 3 minutes between 8 AM to 3 PM but i want to run it between 8:30 AM…
0
votes
0 answers

How to restart app in PM2 without actual files on disk

Is there a way to configure PM2 to restart app by the files from it's last start which are in the memory? The reason for this is that I want to remove my source codes from server. If not, it would be awesome if you mention some alternative…
Pars
  • 4,932
  • 10
  • 50
  • 88
0
votes
0 answers

Can't return collection from azure by using nodejs + mongodb

i cant update or get the info for this collection in azure iam sure in the connection string and every thing right i just cant deal with the collection the query image click here Nodejs MongoClient.connect(url, { useUnifiedTopology:…
0
votes
0 answers

Running Node JS child process exec command exits

I'm running the Node JS child process spawn command to run some commands and am listening for some data from the commands that I run. Unfortunately, my script is exiting and I need it to remain running to monitor the progress of the terminals I'm…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
0
votes
1 answer

Unable to install sqlite3 as a dependency on AWS

I have created an application where I am using SQLite for storing data. It works fine locally, I tried to deploy the node application on AWS, but it's unable to install the SQLite3 package, I don't know why. The eb-engine…
0
votes
1 answer

NestJS Socket.Io left room but still receiving messages

I have three rooms General, TypeScript and Nest. I'am joining General room in the first and second browser tab. When I decide to leave General from the second tab and join TypeScript room I still get the messages from General even though I should…
retro
  • 51
  • 8
0
votes
0 answers

Time function not working properly in nodejs

I have a nodejs app. Below is the code to see online clients and the time. But It always shows wrong time and online clients are shown 4 hours ago always. What's wrong in this code? type state = { activePopup: any popupData: any activeBuilder:…
0
votes
1 answer

issues with imports on modularized apollo server

i have a fully working modularized apollo server on nextJS (based on this article https://www.apollographql.com/blog/modularizing-your-graphql-schema-code-d7f71d5ed5f2/ ) basically im doing an Array of my typedefs and merging the resolvers using the…
Wil
  • 1
  • 1
0
votes
4 answers

How to export a variable which is in a class in Nodejs

This is my file loginHandler.js class LoginHandler { merchantId = ''; returnURLForIframe(req, res) { merchantId = req.params.merchantId; } } module.exports = new LoginHandler(); I want to access the variable merchantId on another…