471,573 questions
-1
votes
1
answer
46
views
How to fsync a directory?
I have a write-ahead log that stores some metadata using atomic renames. Currently I am only fsyncing the file before rename, but it is my understanding that I should also be fsyncing the directory ...
0
votes
0
answers
28
views
How to securely connect Flutter to a Node.js server with TLS or RSA encryption?
I'm building a Flutter app that needs to send user data (like name and street) to a Node.js backend server. Currently, the data is sent via URL like this:
http://192.168.1.126:8080/save?name=toto&...
-2
votes
1
answer
26
views
Unable to see sign tab over the anchor tab for Docusign digital signature
I am using Node SDK for Docusign digital signature. I have specified the anchor string but when I send the document I amunable to see the sign tab over the anchor.
const envelopeDefinition = {
...
-2
votes
1
answer
52
views
How do I collect a list of links on page then iterate through and test each one?
I have a modal component that is used on a lot of pages on my site. I want to go through each page on my site, collect a series of links on that page which trigger the modal and test each one to see ...
-1
votes
1
answer
37
views
How to properly run seeds in Prisma 6+ using modern configuration with prisma.config.ts?
I'm using Prisma 6.13 in a project with NextJs and I want to implement the seed process using the new modern configuration approach prisma.config.ts as recommended by Prisma in recent versions.
I'm no ...
-2
votes
0
answers
24
views
MCP inspector tool do not have option to add input in Streamable HTTP mode
I have created a simple MCP server and accessing it via StreamableHTTPServerTransport.
I am not quite sure in the MCP inspector tool I do not see an option to add input parameters. Could someone ...
0
votes
0
answers
54
views
How the firestore support custom class and also custom class supoort FieldValue with typescript?
firestore nodejs sdk support custom class with typescript by withConverter. But only updateDoc support FieldValue, what about setDoc, addDoc?
for example:
class Post {
constructor(
...
-1
votes
0
answers
46
views
Error while trying to create JWT token in register API using TypeScript [duplicate]
Code:
const newUser = new User({
username,
email,
password: passwordHash,
organization: null,
designation: null,
role: "user",
});
await newUser.save();
const ...
-4
votes
0
answers
59
views
How do I use the files I uploaded to Google Drive via the API in an img HTML tag
I'm working on my first React full stack project, and I want to upload the media files (mainly images) on Google Drive, but also read and delete them. The uploading works fine, but when I try to ...
1
vote
1
answer
41
views
Canvas Sketch is not rendering the specified colour
The code works perfectly, including the animation. But I'm unable to change the background colour to anything except black when using rgb, hex or hsl codes. Only way to change the background colour is ...
1
vote
1
answer
69
views
Express.json() works on local but not on AWS Lambda
I've been struggling to parse the request body from POST. I tested the code locally via curl and returns the json body. On Lambda, I tried both curl and Postman but it just returned the buffer data.
...
1
vote
2
answers
47
views
NestJS @Public() decorator works on other routes but returns 401 Unauthorized on one route with @Res() response
I have a NestJS app with global JWT and Roles guards applied in main.ts. I use a custom @Public() decorator to mark public (unauthenticated) routes. The decorator works fine for most routes, but one ...
2
votes
1
answer
41
views
How to set HTTP header after writing of response body but before submitting it?
If I call setHeader after calling write on native Node.js ServerReponse, it will fail with "Cannot set headers after they are sent to the client".
response.write("<h1>Test</h1&...
1
vote
0
answers
46
views
run powershell script with specific AppUserModelID from node.js
I have some powershell script/command I wish to run form a node.js environment. But since the command is dependent on the 'AppUserModelID' it seems to fail since the command spawns a separate program (...
-1
votes
0
answers
39
views
Access Google Cloud Storage Bucket Generation 2 Run Cloud Function Firebase App [closed]
I am updating a version one cloud function to generation 2 cloud run, which is no longer working. I'm getting the error failed to import the @google-cloud/storage library (version 7.16.0 is installed ...