471,798 questions
0
votes
1
answer
53
views
Is preventing overwriting existing S3 object atomic?
const {
S3Client,
PutObjectCommand,
GetObjectCommand,
DeleteObjectCommand,
} = require("@aws-sdk/client-s3");
const params = {
Bucket: process.env.AWS_S3_PHOTO_BUCKET,
...
-1
votes
1
answer
56
views
How to handle async/await inside Express middleware without blocking the request-response cycle? [closed]
I'm working on a Node.js project with Express and using async/await inside middleware to validate an auth token with an external API.
Here's my middleware:
const authMiddleware = async (req, res, next)...
-3
votes
0
answers
38
views
How to deal with the printer using Node.js [closed]
I have a lot of problems when I try to deal with the printer using Node.js.
I have tried a lot of libraries like :
pdf-to-printer - it is good, but when I use the fit option, it makes the printing ...
0
votes
0
answers
15
views
pnpm install error: ERR_PNPM_EBUSY (Failed to add tarball from ... to store: EBUSY: resource busy or locked, rename ... -> ...)
I got this error while installing modules with pnpm.
WARN GET https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz error (ERR_PNPM_EBUSY). Will retry in 10 seconds. 2 retries left.
WARN ...
0
votes
1
answer
32
views
How to write a database query in Node.js/MongoDb using regex that returns a result when a field starts with a given string? [duplicate]
So far I have this code, that attempts to remove a "document" (a path string, like "./documents/images") from a database, as well as all subdocuments (path strings that start with ...
0
votes
1
answer
38
views
Why is a required field (userId) undefined in Mongoose even though it exists in the database?
I'm using Mongoose with a MongoDB collection where the userId field is defined as required in my schema like this -
userId: {
type: String,
required: true,
ref: 'user'
}
When I fetch document ...
0
votes
1
answer
20
views
How handle the child process errors in Gulp?
The error in child process not always means that something fatal occurred.
For example in "vue-tsc" case, if there will be some TypeScript errors, the error parameter will be not null while &...
0
votes
0
answers
21
views
ICT Protege WX server authentication not working
I'm trying to authenticate ICT protege wx controller which is higher firmware version than 4.00.1676. I'm getting first random number but failing at second random number, following this C# example ...
3
votes
1
answer
47
views
When I run 'npm run watch:js', it changes app.js file code
I have a Node.js project, and after the Parcel update, I’m running into an issue.
In my ./public/js/ folder I have two files: bundle.js and bundle.js.map.
Previously, Parcel was compiling/bundling the ...
0
votes
0
answers
13
views
Azure function not recognizing handlers on deployment when importing @azure/cosmos
Summary
When deploying a Node.js Azure Functions v4 application, the function handlers are not detected by the Azure runtime if the @azure/cosmos package is imported and used. The deployment appears ...
-3
votes
0
answers
32
views
Node.js/tsx server fails to render React component with 'Objects are not valid as a React child' error [closed]
I'm running a Node.js/Express server with tsx and I'm trying to render a React email template to an HTML string so I can send it with Resend.
The process consistently fails with a React error, even ...
-3
votes
0
answers
27
views
Real-Time Discord Messaging via Chrome Extension using RGOK Node Integration(watch out! let's build server) [closed]
I recently built a system that lets you send and receive Discord messages directly inside a Chrome Extension — without needing to switch to the Discord app. It uses Node.js + Discord.js for backend ...
-3
votes
1
answer
52
views
How to write to S3 bucket only if it doesn't overwrite an existing object
const {
S3Client,
PutObjectCommand,
GetObjectCommand,
DeleteObjectCommand,
} = require("@aws-sdk/client-s3");
const params = {
Bucket: process.env.AWS_S3_PHOTO_BUCKET,
...
0
votes
0
answers
31
views
Paypal sandbox recurring payment not throwing Subscription Activated event
I am trying to integrate Paypal payment gateway in my web app ( react + nodejs ). Currently it is in testing mode so I am using sandbox mode.
I want recurring payment. For that I have created some ...
0
votes
0
answers
13
views
is it possible to set a field to a custom type (object) using @typegoose
Stack: NodeJS 24, Express 5, "@typegoose/typegoose": "^12.17.0",
class ItemSchema {
@prop()
public name: string;
@prop()
public data: ? // object <- I used it ...