Questions tagged [nodejs-server]
405 questions
0
votes
1 answer
Is global variable assignment atomic on NodeJS?
I’m working on a stateful and websocket server on Node. We require a piece of read-only data that is important for the biz logic and save it in Node’s global scope, and recently we have to invalidate this require cache and re-require to allow…

user917099
- 231
- 3
- 11
0
votes
0 answers
Equivalent of image/png;base64 for excel file streaming
I have been building this web app using nodejs in which i need to send the Excel file to the client over web sockets. I tried using delivery.js but i was not able to achieve the result. Then i tried socket.io-stream. There are examples for image…

Karthik P K
- 1
- 1
0
votes
1 answer
How to write join query in nodejs server loopback?
How to write join query in nodejs server loopback? Because I want to fetch data according to condition on second table's field.

Akash N
- 13
- 1
0
votes
2 answers
Determine if server is already listening on path to unix domain socket
On Node.js version 10+
Say we have a server listening on a path (unix domain sockets):
const server = net.createServer(socket => {
});
const p = path.resolve(process.env.HOME + '/unix.sock');
server.listen(p);
is there a way to determine if some…

Alexander Mills
- 90,741
- 139
- 482
- 817
-1
votes
1 answer
How to make a form to validate a string taken from user as input, and the string from which we have to validate shouldn't get revealed in any form
I am trying to create html form where a user (user is a red teamer, basically hacker) inputs a string which he got after solving some sort of challenge, and we have to validate that the string he got is correct or not.
The major problem i'm facing…
-1
votes
1 answer
getBalance() function is not working online?
Hello everyone can you please help me to solve this error :
The conditions I want to run: I use NodeJs with Web3.js to find the balance of the account address in Blockchain using 'getBalance()' function. My code is run perfectly on 'localhost' and I…

AnWho
- 1
- 1
-1
votes
1 answer
nodemon app crashed - waiting for file changes before starting ... Error
appjs
const express = require("express");
const path = require("path");
const homeRouter = require("./routes/home.routes");
const app = express();
const port = 8000;
app.use(express.static(path.join(__dirname,…

Islam Abdelradi
- 7
- 2
-1
votes
1 answer
I can't start Next.js Application using Plesk. I get Error build module not found
I tried hosting my Next js app on Plesk, but after Following this Tutorial https://dev.to/optimbro/how-to-setup-nextjs-application-on-plesk-hosting-control-panel-linux-3d54
and trying a bunch of shit myself i either get nothing happening on start ->…

Luca Schönherr
- 11
- 1
- 4
-1
votes
1 answer
How to can I convert base64 to file in online nodejs server
I am trying to convert base64 with the code below which is working on my localhost but whenever I push to heroku server, I get error and the conversion will not work like that of the localhost
This is my nodejs code:
export const uploadFile =…

helyz247
- 93
- 5
-1
votes
1 answer
How to handle the AWS lambda function error in nodejs
I am using node js to get the HTTPS response from the server . The response contains more than 6291556 bytes When I execute this function I got the below exception. Is there any best way to handle the error
{
"errorMessage": "Response payload size…
-1
votes
1 answer
How to intercept the response of a request to an endpoint in NodeJs (Express 4) before it goes out
I am working on a NODE JS project with Typescript started by other people and I need to trigger an action if the response from some endpoints is successful, so I need to intercept this response before it is sent to the entity that is making the…

doDDy
- 75
- 7
-1
votes
2 answers
How to create webhook of quickbooks using nodejs api?
I was tried to implement webhook of quickbooks in nodejs api for get realtime data related to customer for update and insert in my sql database but not got any proper reference and found solutions.

ashishdudhat
- 180
- 3
- 9
-1
votes
1 answer
EC2 Nginx lets encrypt setup, https is not working
I have setup nodejs REST api server in EC2 instance. In my goDaddy console, I have mapped ip address of my ec2 instance to my domain. Now it's accessible via http. This the link to my api.
I have configured nginx server and installed certificate for…

Bopsi
- 2,090
- 5
- 36
- 58
-1
votes
1 answer
I am trying to post data in MySQL through Node.js, but unable to do that because I can't find the error
I have done with getting date and deleting data, but when it comes to posting data, I'm stuck with this error. I have tried it a lot time, but couldn't find it. I am using Postman for posting data. I am facing this issue,:
code:…
user11466949
-1
votes
1 answer
Struggling with CORS policy using socket.io nodejs
I have found a lot of information about the CORS policy problem, but nothing worked even when I have tried every solution I found here.
My last attempt was this in the nodejs server:
var express = require('express');
var app = express();
var spawn…

jstuardo
- 3,901
- 14
- 61
- 136