Questions tagged [nodejs-server]

405 questions
0
votes
0 answers

I want to return data coming from database in variable

I want to save data in accountID and using that ID want to fetch data from another collection but ID is not getting accountID async function egetCredientials(body){ let accountID = await getAccuntID(body); console.log(accountID); } async function…
0
votes
1 answer

Delete all files with a specific name, and * extension at Azure Blob Storage

I have a process where a client uploads a document. This document can be in the form of a PDF, JPG or PNG file only and it should be reuploaded once a year (it is an errors and omissions insurance policy). I am saving this file in a container. For…
Danielle
  • 1,386
  • 8
  • 22
0
votes
0 answers

how to execute Nestjs server on a single button click even?

We all know nestjs server or app are run by nest start. But what if I try to run it by a button click event? can anyone help? thank you
MueEZ
  • 136
  • 1
  • 1
  • 7
0
votes
0 answers

Nodejs - Angular Upload File to server Not found 404

I am new in Angular, and trying to upload file from front-end to the server but I get failed in that. post the file using Postman is working successfully, but when I apply on the browser I got the error below in the image: my code as the…
Ahmed Meshaal
  • 109
  • 2
  • 4
0
votes
1 answer

How to update Elasticsearch dynamic data multiple fields using UpdateByQuery in NodeJS

How to update Elasticsearch data multiple fields using UpdateByQuery in NodeJS ? Note - My data is coming dynamically. I can't pass static value. I have to pass like - data.name, data.id Code - function updateInELK(data) { // Update by Id const…
0
votes
0 answers

Autodesk forge viewer - disconnected flow not working on Android

I followed Autodesk disconnected Workflow to run forge viewer on my Android phone. I am running this as a HTTPS server on my local machine. According to make it as HTTPS, I have done following changes to Server.js file. const express =…
0
votes
0 answers

MongoDB aggregation filtering of a nested categories

I need to create a MongoDB query that gets all sub-categories of one main category. Here it is my DB records. { "_id": { "$oid": "5172d1daffdd81f3234d5f88" }, "categories": [ { "categories": [ { "id":…
0
votes
1 answer

What is the efficient way to make API request for all the IDs of a table

I have events table with multiple records. Columns - id, start_time, end_time ... I have to fetch the analytics for all the live events (which can be thousands at a certain time) repeatedly by third party API calls, which can take one event at one…
Rahul Patel
  • 639
  • 6
  • 12
0
votes
0 answers

How do I get server.js to do the equivalent of "yarn start" in nodejs to docker conversion?

I am trying to get a nodejs app to run in a container. I have followed the tutorial here: https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ and it works for the example. But, I do not know how to convert my start up command "yarn start" to be…
fvlasie
  • 73
  • 10
0
votes
0 answers

Package.json doesn't has a valid "main" entry in JWT, aws ec2

I trying to host my nodejs backend service using AWS Ec2 Ubuntu. But the problem is the JWT package couldn't be install correctly. It showed Please verify that the package.json has a valid "main" entry and Deprecation Warning. My backend is hosted…
0
votes
0 answers

"serve -s build" starts over my create-react-app "npm start"

I have posted about my another problem that related to this problen. So for some reason when I start my react app with npm start and then trying to start server at the same port using serve module serve -s build my main PC returns a warning as it…
0
votes
0 answers

Ec2 instance out of service

I have an ec2 instance. and I use this instance for serving Nodejs applications with GitHub action. everything is working as expected. but sometimes like after 1/2 days, the instance is not reachable by anything. it's showing an offline flag on the…
0
votes
3 answers

server side pagination in node js and mongo db

please help me with this server side pagination in node js and mongo db function getServiceQualityAnex(req, res, next) { if (req.query.code != null) { ServiceQualityAnex.find({ location: req.query.code }).sort({ _id: -1…
afnan
  • 21
  • 1
0
votes
1 answer

How do i access the sql message from the error given by sequelize.js

While passing a invalid ID in my Sequelize Create function, Sequlize returns a error in the following format. Error at Query.run (B:\Node JS\Backend Express\node_modules\sequelize\lib\dialects\mysql\query.js:52:25) at B:\Node JS\Backend…
0
votes
0 answers

In Postgres database How to get column values in one single row comma separated value

I am doing it in nodejs please guide me to get expected output in postgres my table creation Query CREATE TABLE IF NOT EXISTS "detailed_data" ( "id" SERIAL, "data" VARCHAR(100) NOT NULL, "bike_used" int default 0, …
timdev
  • 1
  • 1