473,553
questions
-1
votes
0
answers
10
views
Pros and Cons of JavaScript (Node.js) vs. PHP for Email and File Handling? [closed]
I am developing an app in C++ that interacts with a database and need to handle tasks like sending confirmation emails and uploading files. Since these tasks aren't ideal for C++, I am considering ...
0
votes
0
answers
6
views
How to force yarn install to use the current version of node
I have a back end and a front end that I'm developing locally. The backend uses node 22 and the front end uses node 21, as specified in their package.json.
I have both versions installed, and I ...
0
votes
1
answer
7
views
jenkins: create new node from my NestJS application
I am trying to create a node from my NestJS application using api request, and got error code 400 "Bad Request"
this is my code:
async createNode(agentName: string, url: string): Promise<...
1
vote
0
answers
9
views
Please install sqlite3 package manually
I get an npm error from the sequelize module when running the project via node:
"start": "node build/scripts/main.js"
webpack-internal:///../../node_modules/sequelize/lib/dialects/...
0
votes
0
answers
14
views
How to pass data to multiple database tables in NodeJS using google OAuth?
passport.use("google",
new GoogleStrategy(
{
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: "http://...
-1
votes
0
answers
8
views
Remix: recommended approach for singleton services?
I have an existing Remix v1 app that I am trying to migrate to v2+ and I currently have a custom server running using their suggested approach and in that server as soon as I can, I instantiate a ...
0
votes
0
answers
16
views
python script on node js app using child-process
I have a node js app that I am hosting on IIS and it has a python script that I am calling using the child-process library. It works fine when I am running the app on localhost but when I access the ...
-1
votes
0
answers
16
views
Protected Route and api call
I have the following code in App.js to create routes in React
<ProtectedRoute
path="/download-pdf/:id/:title"
exact
component={DownloadPDF}
/>
I ...
0
votes
0
answers
11
views
How to store session data in express properly
I have a 4.x express app. I would like to store data in the session after user has successfully logged in. When I try to access this data in another request the data is always undefined.
Here is my ...
0
votes
0
answers
6
views
Implement EIP 712 signature generation in nodejs not working
I have a contract I am trying to make a call to this function in a contract,
function executeAction(
address to,
uint256 value,
bytes calldata data,
uint256 _nonce,
...
0
votes
0
answers
16
views
Multiple Set-Cookie headers are combined; browser only picks the first cookie
I’m developing a GraphQL API using Apollo Server running on AWS Lambda with API Gateway (using the @as-integrations/aws-lambda package).
In my authentication flow, I need to set three cookies (idToken,...
0
votes
0
answers
17
views
Streaming mp3 using node http to Icecast server gives no output
I'm trying to stream a custom mp3 datastream to Icecast2. Icecast recognises there's a mountpoint, however the streamed data won't play and I have no idea why.
import ffmpeg from 'fluent-ffmpeg';
...
0
votes
0
answers
17
views
Is posible install old version of adminjs
I'm searching an admin template for an application based on NodeJs+Express+Sequelize.
I find Adminjs that seem like very usefull for my purpose, but i read in documentation that is deprecate Js syntax ...
0
votes
1
answer
17
views
HKDF function in Python and NodeJS give different results, why?
While working on implementing encryption/decryption between a Python backend server and a NodeJS frontend, my decryption attempts on the frontend were failing. I noticed that HKDF result generated by ...
1
vote
1
answer
20
views
How to send an email using AWS SES from inside VPC private subnet?
I have a node server running in AWS ECS Fargate inside a private subnet.
I have set up the task policy to allow sending emails
resource "aws_iam_role_policy" "ecs_task_ses_policy" {...