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

All Questions

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 ...
Shreya's user avatar
  • 1
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 ...
Karol's user avatar
  • 620
0 votes
0 answers
12 views

Getting error while hosting MERN Project on AWS: .env file error

Upload the file on the aws ec2 instance using GitHub so after that I use pm2 to start the server file, but it shows an error that the server is running on an Undefined port and a mongodb error, but ...
kalgi's user avatar
  • 1
-2 votes
0 answers
14 views

Can not read excel and upload data to database in es2 instance

I have a vm on ES2 instance with ubuntu, I run my project in this VM, so my code should go through excel .xlsx file (which I copy with scp command from my computer to es2 instance) and change ...
Shogher's user avatar
  • 55
-2 votes
0 answers
27 views

Node js CORS error only on /admin route only [closed]

I am facing this issue with only one route which is /admin. I have deployed the Node js Code on the EC2 instance. No Nginx is used, Domain is mapped using Load Balancer. There is no issue with the ...
Engineer S. Saad's user avatar
0 votes
0 answers
8 views

How to Efficiently Upload Files in Parallel in Next.js/Node.js Using Async and S3?

I'm working on a Next.js project where I need to upload multiple files to AWS S3 in parallel. I'm using the @aws-sdk/client-s3 for uploading the files. Despite trying different approaches, my uploads ...
Hassaan Baig's user avatar
-2 votes
0 answers
15 views

"Error: Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs"

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 ...
Shreya's user avatar
  • 1
0 votes
1 answer
27 views

AWS lambda serverless framework on local with other aws services

I am pretty new to AWS and trying to creating AWS lambda application using node js and serverless framework. But I stumbled upon a point where I have to run the things locally to test the things like ...
Vikneswaran 's user avatar
0 votes
0 answers
28 views

How to connect to AWS RDS Postgres via Node.js running on local machine

I have a Node.js app running on an ES2 instance which I can connect successfully to an AWS RDS Postgres database and run a SQL statement to return the results. Now I want to run that same app but on ...
Steve Tomlin's user avatar
  • 3,683
0 votes
0 answers
22 views

Failed to send SQS message for ECS container without any error description

I have code running inside ECS container, with the following code to send SQS message: import { SQSClient, SendMessageCommand } from "@aws-sdk/client-sqs"; import { MAX_ATTEMPTS } from &...
Tal Rofe's user avatar
-1 votes
0 answers
23 views

why is s3 returning null even though I have folders in the directory

I made this small code where the code finds the folder i write in the input box and displays it's content but aws is just sending no directory data to me Here is the function doing the work async ...
Divyansh Pathak's user avatar
1 vote
0 answers
19 views

Running cron job only on 1 task instance in a multi instance AWS ECS Fargate container

I would like to run a cron job which runs everyday and do some operation. Now my nodejs server has 4 instances/tasks running simultaneously to handle the load. How can i ensure that my cron job is ...
Harshit Agarwal's user avatar
0 votes
1 answer
27 views

Multer s3 upload: File in s3 not playing and file increase

I am uploading a mp4 file to s3 via node.js s3. The code works and I see the file in the s3. However The original file is 860kb but when uploading it it turns to 1.4MB and when I download it from S3 ...
ThunD3eR's user avatar
  • 3,366
-3 votes
1 answer
42 views

Serverless S3 Sync is invalid

I was getting started with serverless everything was fine until i used S3Sync to upload data to my bucket, this is my yml file i also installed serverless-s3-sync plugin using yarn before using sls ...
Ansh Arora's user avatar
1 vote
1 answer
58 views

"connect ECONNREFUSED" with Nginx on AWS EC2

I'm deploying my node server to AWS and came across a problem. Everytime I try to connect to my instance over HTTP I get this error Error: connect ECONNREFUSED [INSTANCE PUBLIC IP]:80 I've deployed ...
Moasfar Javed's user avatar

15 30 50 per page
1
2 3 4 5
564