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

All Questions

Tagged with
0 votes
1 answer
29 views

How to mock the lambda layer in nodejs

I'm using lambda layer in my lambda function. Since lambda layer code will not be present in the local system, I'm not able mock the layer functions My code looks like this // index.mjs import layer ...
pavan's user avatar
  • 1
0 votes
1 answer
50 views

Alexa Skill failing validation due to returning an error using one of the sample phrases - Because the sample phrase causes a slot to be undefined

Using Node.js Hosting using Lambda I am having an issue with one of the slots when the user doesn't mention it as part of their interaction. My intent has a slot called gameMode which may or may not ...
C-Bertram's user avatar
0 votes
1 answer
141 views

Packages for reading parquets in NodeJS (2024)

Creating a lambda in NodeJS that can parse parquet (version 2.0) files into JSON arrays. I have tried the following libraries which lead to failed results for various reasons: parquetjs, parquets, ...
Sean's user avatar
  • 659
1 vote
1 answer
74 views

AWS lambda function used for slack command returning json instead of text

I have a lambda function build on nodejs. export const handler = async (event) => { return { statusCode: 200, body: JSON.stringify({ "response_type&...
Dania De la Puente's user avatar
-2 votes
2 answers
935 views

Challenges with HTML to PDF Conversion using Puppeteer in AWS Lambda

HTML TO PDF I am facing difficulties converting HTML to PDF using Puppeteer within an AWS Lambda environment configured with Node.js 16. Although Puppeteer works reliably in local and server ...
rahulfaujdar's user avatar
0 votes
0 answers
45 views

AWS lambda NodeJS: Route traffic through squid proxy

I am very new to NodeJS. I am trying to pass traffic through a squid proxy from a NodeJS lambda. Here's my code. var http = require('http'), tls = require('tls'); var req = http.request({ ...
user2373210's user avatar
1 vote
0 answers
232 views

__filename throwing a reference error when using Rollup's typescript plugin in an AWS Lambda

I've been battling this for a while now. I have an AWS Lambda which is running the rollup bundler in an AWS Lambda function, and uses the typescript plugin but it throws a an error: ReferenceError: ...
FRMR's user avatar
  • 318
0 votes
1 answer
209 views

@azure/identity node.js v18 aws lambda - ClientSecretCredential is not a constructor

I have started learning how to implement AWS Lambda functions and want to be able to authenticate with Azure AD to create/update users. I'm getting the following error: ClientSecretCredential is not ...
Phil Shelton's user avatar
0 votes
0 answers
110 views

AWS Lambda Function Test Failure

I tried to run test(s) several times on the AWS Lambda, but i am getting this error even i have look through the code thoroughly and could not come up with a solution that solves this issue. If anyone ...
Sardor's user avatar
  • 26
0 votes
1 answer
467 views

sendPhoto not working, doesn't throw any error (node.js, telegram-api, node-canvas)

I'm trying to develop a test telegram bot that creates a picture with a random number on it and send it to a chat. Since deploying a function that includes node-canvas from a zip file is painful I've ...
Emiliano's user avatar
0 votes
1 answer
40 views

Rewrite ExpressJS Function to AWS Lambda (Multipart-Uploader)

Does someone have an idea, how to rewrite this Express.js function to AWS Lambda for Node.js 18? const upload = multer() // Receive chunk and write it to S3 bucket app.post('/upload', upload.single(&...
texi's user avatar
  • 48
0 votes
1 answer
230 views

sometimes lambda.invoke doesn't trigger lambda call

I have a long running download task that is being performed by download-lambda function. download-lambda function gets executed from other lambda function code, let's call it calling-other-lambda ...
micronyks's user avatar
  • 55.1k
0 votes
0 answers
20 views

Nodejs logger that enforces certain meta

Looking for a logging solution for aws lambda where I can enforce developers to provide certain fields to the logger. For example, I like developers to attach service_name and correlation id to each ...
Arif Bilgin's user avatar
0 votes
0 answers
49 views

Mongodb connection disconnected after 2-3 hrs

Mongodb connection diconnected after 2-3 hrs. Network access - 0.0.0.0/0 My backend application is running on AWS Lamba on the top of API gateway. Its a monoletic application which has 20+ endpoints. ...
Atique Ahmed's user avatar
0 votes
0 answers
178 views

When requesting from lambda via Axios returns timeout error

I am getting a response when I am requesting to below URL using Axios from locally. Even it's working as expected in Postman request. But when I am trying the same code base from lambda, I am getting ...
Rahul Radhakrishnan's user avatar

15 30 50 per page
1
2 3 4 5
39