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

All Questions

Tagged with
-1 votes
0 answers
76 views

Promise.All() executing but resolving Promises immediately without waiting for responses

I am trying to execute some tasks in parallel (literally, spread over multiple threads and CPU cores) via firing them off using Promise.All(), which then calls a function that sets them off to work ...
GFORCE100's user avatar
0 votes
0 answers
25 views

The stream in Node.js returning empty

const command = new GetObjectCommand(getObjectParams); ...
luminaries's user avatar
1 vote
1 answer
55 views

Seeking Efficient Solutions for Handling Asynchronous File Operations in Node.js

I'm currently developing a Node.js application that requires managing a high volume of asynchronous file operations like reading, writing, and deleting. As I scale up these operations, I'm running ...
Hiren Kalariya's user avatar
0 votes
2 answers
33 views

How to return data in SOAP from Promise

I created a SOAP server in Node.js const soap = require('soap'); const http = require('http'); const XMLWriter = require('xml-writer'); const service = { ImpDispatcherService: { ...
Wernfried Domscheit's user avatar
0 votes
0 answers
19 views

NodeJS await moveing on before function returns [duplicate]

i am downloading images using this function (downloads 30 images) async function downloadImages(imagesList) { imagesList.forEach(async element => { if (!checkForImage(element.filepath)) ...
YelloElefant's user avatar
0 votes
1 answer
51 views

Is there a way to create async tasks with delay, containing the Strapi object as dependency?

After an endpoint was reached, I want to execute a service after a defined expiration time. That means that I need to use the Strapi instance. Is there a way to create like a CRON job maybe, but that ...
Raph Mrci's user avatar
0 votes
1 answer
34 views

Using await/async functionality in a forEach loop of a firebase query result

I have an Node.js function which queries multiple firebase collections. I want to iterate over a collection result set which will query another collection for each object returned. async function ...
MattJ's user avatar
  • 97
0 votes
2 answers
56 views

How can I terminate a function process when an event occurred

everyone, there is a task, where I need to terminate a function process when an event occurs. Normally, when throwing an error in anything inside the process, for example, throwing an error from the ...
Mahmoud Y3c's user avatar
0 votes
0 answers
15 views

How to Synchronizing Data Extraction with Asynchronous Page Navigation | Puppeteer

Lets say I have a page which scrap data for table rows and each row has a button which open new page(like an image viewer) to get the image url using nodejs and puppeteer. After clicking the button in ...
Libra Larow's user avatar
1 vote
1 answer
33 views

Chaining async class methods, Where and Why does the Scope Change?

I wrote a class module that has async methods, and now im trying to chain the methods using .then() the scope of 'this' changes somewhere along the line and i then have to bind the function back to ...
Koza's user avatar
  • 113
0 votes
1 answer
57 views

How to handle multiple async functions when fetching for emails and attachments with IMAP and javascript

I am using IMAP library and javascript to fetch for emails. My plan is the following: Fetch for the emails by email, subject, and a time range. Look for the emails number. For each email, I need to ...
daniel sas's user avatar
0 votes
0 answers
33 views

developing a webhook receiver, it needs to handle time-consuming operations while ensuring a quick response. Any tips on how to achieve both?

As a webhook receiver, I'm tasked with handling time-consuming operations while also ensuring a prompt response to the webhook. What are some effective strategies to achieve both efficiently? Any ...
ishak MP's user avatar
0 votes
0 answers
99 views

SyntaxError: Unexpected token 'async' when index.js file called

I have a node.js app running locally in netbeans. Its entry point is an app.js file: "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ...
user1518003's user avatar
0 votes
0 answers
21 views

What is my problem with updating data without auto-updating the page?

The problem with updating data without auto-updating the page please help with this, I provide the code below if possible, tell me what I'm doing wrong and how to avoid it in the future frontend ...
Алексей Черман's user avatar
0 votes
1 answer
89 views

Prevent blocking the event loop on sync operations

The company I work for has a micro service which handles 300 requests per second, among 30 NodeJS pods. The metrics in DataDog showed high latency and cpu usage today, when there was a peak in ...
Daniel Cohen's user avatar

15 30 50 per page
1
2 3 4 5
480