Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
95
questions
0
votes
0
answers
9
views
Problem recovering image, local drive - VPS
I recently uploaded my API to a VPS, and I'm having trouble recovering the images that are being saved locally. Whenever I try to open the image URL, I get a 404 Not Found error.
I'm not saving the ...
0
votes
0
answers
18
views
Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs Error on AWS lambda
I am trying to invoke a lambda function on AWS but I am getting the error: "Error: Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs"
Folder structure:
enter image ...
0
votes
0
answers
7
views
How to create an API authorization with the latest IOS SST and AWS
I want to create an API with the new SST v3 aka ION SST.
Docs don't say much about auth-related things and I feel confused.
I have a separate Next.js app and now I want to create a backend ...
0
votes
0
answers
9
views
Extrange problem with URL command line parameters on Electron app
I have discovered that if you pass a URL parameter using the command line to an Electron app, it must be the last one. If this condition is not met then electron fails to load the application and ...
-2
votes
0
answers
11
views
Displaying host machine info with docker container
I have nextjs app and im using nodejs os to gather system info about totalram cpu etc. How i can make it work with docker cause if i run my app with docker compose on my app ui i see ram allocated to ...
0
votes
1
answer
12
views
aws ec2 nginx reverse proxy to nodejs allow cors not working
I tried a couple of examples:
/etc/nginx/conf.d/default.conf
server {
listen 80;
server_name ec2ip;
set $cors_origin "";
set $cors_cred "";
set $cors_header ...
0
votes
0
answers
25
views
Link from react-router-dom is not redirecting
Since the button is within a <Link /> Component it shoul redirect to the '/home' page but it is not, its not redirecting anywhere. the function PostLogin is being Called i have confirmed
<...
0
votes
0
answers
13
views
How can i generate the arrow function format typeorm migration file?
when ever i am generating migration file i am getting this kind of format
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "transaction&...
-3
votes
0
answers
26
views
Stripe Connect Payouts API [closed]
I am creating an application in which users can add their bank accounts in the application and from admin side I want to send the payouts to their bank accounts. I am using Node.js and Stripe.js (In ...
-1
votes
0
answers
15
views
req.headers.authorization is undefined
So I've been trying to implement JWT authorization for my project, and there's this specific step that I've been stuck for hours... So I have a middleware setup to try and verify the access token ...
0
votes
1
answer
28
views
The input in searchbar disappears when i click on any other space/part of the browser of when i click tab button
import React, { useState, useEffect, useRef } from "react";
import { useNavigate } from "react-router-dom";
import axios from "axios";
import Autocomplete from "@mui/...
0
votes
1
answer
19
views
npm install angular/cli isnt working - seems stuck midway, no log, no error regarding why it is stuck
Can anyone help me with an issue I have during npm install @angular/cli
Below are the details
Command I am running: npm install -g @angular/cli
What I am seeing: the install starts pulls some ...
0
votes
0
answers
7
views
Axios cannot handle binary response and returns 500
I have a middleware server build with nodejs. I use it to communicate with different APIs. One of the endpoints is to get a pdf file that comes in binary format like
%PDF-1.4
%����
1 0 obj
<<
/...
0
votes
0
answers
12
views
Getting "Error: ENOENT: no such file or directory, stat '/root/e-server/ecom/ecom/web/index.html" launching a flutter web app on an node.js server
I getting this error in chrome, after uploading an flutter web app on an ubuntu/nodejs server and i am not sure, if the path is incorrect.
Iam trying to launch an flutter web app on an nodejs server (...
0
votes
0
answers
12
views
'UserInput\01-starting-project\node_modules\.bin\' is not recognized as an internal or external command
'UserInput\01-starting-project\node_modules.bin' is not recognized as an internal or external command, operable program or batch file.
node:internal/modules/cjs/loader:1222
throw err;
Error: Cannot ...