3,561 questions
0
votes
0
answers
56
views
Deploying a Digital Ocean Go serverless function with outside libraries
I am unable to build/deploy a digital ocean function that relies on nonstandard libraries (some third party, others local). I have three projects: an API, the DO functions, and a common library used ...
1
vote
0
answers
29
views
Bun + Express on Vercel: How to Modularize Routes from Separate Files?
I'm deploying a Bun + Express application to Vercel. Locally, my Express app works perfectly with routes defined in separate files and imported into index.ts. However, on Vercel, the deployment ...
-1
votes
0
answers
38
views
prisma p1001 error - Can't reach database server at `aws-1-ap-south-1.pooler.supabase.com:5432` [closed]
This is the schema in my prisma.schema:
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
...
0
votes
1
answer
73
views
Python tempfile TemporaryDirectory path changes multiple times after initialization
I am using tempfile with Polars for the first time and getting some surprising behavior when running it in a serverless Cloud Function-like environment. Here is my simple test code:
try:
with ...
1
vote
1
answer
64
views
Streamlit file uploader returning 400 Bad Request when deployed on Modal (works locally)
I have a Streamlit app that runs perfectly on my local machine but throws a
400 Bad Request error when deployed on Modal (serverless container).
Here’s the relevant setup:
streamlit_app.py
import ...
0
votes
1
answer
28
views
AWS Lambda not triggering on S3 ObjectCreated:Put after code edit. What am I missing?
I have an S3 bucket that should invoke a Lambda function on ObjectCreated:Put. This used to work. After editing the Lambda code in the console, new uploads stopped triggering the function. I do not ...
0
votes
0
answers
42
views
How to reference existing Terraform-managed VPC in SST without redeploying?
I’m running into an issue when deploying with sst deploy --stage dev.
The error says:
There have been some minor changes to the "Vpc" component that's being referenced by "MyVPC".
...
0
votes
0
answers
20
views
Serverless Build Config not recognized
I am having trouble with my SLS deployment. I am trying to setup a ESbuild config as follow:
...
stages:
default:
resolvers:
aws-serverless-account:
type: aws
region: ${env:...
-1
votes
1
answer
75
views
AWS CDK: using stages as "stacks" and apps as "stages"
I am working on migrating our Typescript application from Serverless Framework to AWS CDK.
Background
Our application started out as mostly just lambda functions, api gateways and some IoT resources. ...
1
vote
1
answer
279
views
FastAPI route works locally with `/` but not on Vercel (and vice versa)
I have a FastAPI + Next.js project deployed on Vercel.
Locally everything works, but on Vercel some routes break depending on whether I use a trailing slash in the route definition.
For example, in my ...
2
votes
1
answer
131
views
How to dynamically update only provided fields in PostgreSQL using Neon + TypeScript + Zod schema?
I’m working on a Node.js/Express backend using PostgreSQL (Neon serverless), TypeScript, and Zod for validation.
I have a Students table with columns:
id UUID PRIMARY KEY,
firstName TEXT NOT NULL,
...
0
votes
0
answers
54
views
node-html-to-image on Vercel serverless function
According to this Vercel page it seems like using a Vercel function to run Puppeteer should be doable, but not matter what I do, I end up with Unhandled Rejection: Error: Unable to get browser page. ...
0
votes
1
answer
66
views
"Unsupported environment variable format" when running serverless
After code changes in stocks_alert.js based on client requirements, the error persisted when I try to run "Serverless invoke local -f stocks_alert".
Here's the complete error:
Error:
...
0
votes
1
answer
82
views
Not able to load ESM library at run time in a CJS project
I am working on a serverless project. Following is the snippet of serverless configuration
bundle:
sourcemaps: true
disableForkTsChecker: true
externals:
- newrelic # Keeps ...
1
vote
1
answer
298
views
How do I configure Vercel to treat a compiled index.js as a serverless function instead of a static file?
I'm working on a Vercel-hosted monorepo with the following setup:
index.ts (using the Hono framework with hono/vercel) is compiled using tsup into dist/functions/index.js
Static assets are built ...
0
votes
0
answers
48
views
Netlify Function works locally but gives 504 timeout in production
Context:
I want to show some records from mongoDB to my front-end chrome extension(iNotes). So, i need backend that will communicate with my mongoDB.
Problem:
I'm building a serverless function using ...
0
votes
1
answer
130
views
AWS Lambda + API Gateway returns 502 Bad Gateway (Internal server error) when called from frontend
I'm working on a Next.js frontend that sends a POST request to an AWS Lambda function via API Gateway (REST API). The Lambda function is supposed to receive an array of objects and return a modified ...
-1
votes
1
answer
93
views
Unable to receive POST requests during Express.js/Vercel development, and unable to receive any HTTP requests after Express.js deployment on vercel
I'm trying to set up a serverless Express.js chatbot receiveing POST requests from Twilio and responding via a webhook
Problem:
When running npm run dev or vercel dev, POST requests my webhook on ...
0
votes
0
answers
27
views
How can I expose Docker containers as public services with strong cost controls?
I have a few Docker containers that I want to expose as stateless, public-facing services callable from my website. Expected usage is low — up to ~50 users/month up to ~10k total requests. One of the ...
0
votes
0
answers
50
views
DigitalOcean node.js function invoke returns Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@google-cloud/documentai'
I am trying to create a DO serverless function.
Everything is functional on my local, but after I deploy the function an try to run it on DO, I get the ERR_MODULE_NOT_FOUND error, for most of the ...
1
vote
0
answers
52
views
How to structure a Serverless Framework project with a root serverless.yml and function-level serverless.yml files?
I'm working on a Python project using FastAPI, AWS Lambda, and API Gateway. I'm organizing my project with a root serverless.yml and separate serverless.yml files inside each function's folder.
When I ...
0
votes
0
answers
44
views
Serverless framework with express internal server error
I am trying to deploy using Serverless but all routes return
{
"message": "Internal server error"
}
here is another example
in my login route there is a post request when i click ...
0
votes
0
answers
66
views
VERCEL ERROR: A Serverless Function has exceeded max size 250mb
I've deployed my project and get a cryptic error:
Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size
-No information as to ...
1
vote
0
answers
27
views
Serverless v4 offline missing test coverage after upgrading
I'm working on upgrading to serverless v4 with serverless-offline v14.4.0. When running our integration tests, we spin up serverless offline and hit the APIs using supertest or equivalent.
The command ...
0
votes
1
answer
58
views
CORS Error in Safari: No Access-Control-Allow-Origin Header on Response
I am facing an issue where my backend API is returning a CORS error in Safari but works fine in Chrome and Postman. The specific error in Safari is:
Access to XMLHttpRequest at 'https://backendServer/...
0
votes
1
answer
106
views
Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response, with a Chrome extension
Consider:
I'm working on a Google Chrome devtools panels extension. In it I have:
const toDbBtn = document.getElementById("toDbBtn");
toDbBtn.addEventListener("click", async () =&...
0
votes
0
answers
48
views
using Split-stack with serverless framework but not nesting stacks under the 500 CloudFormation resource limit
I am using the serverless framework and cannot deploy because I have more than 500 resources which is the CloudFormation limit. I am using the split-stack plugin, but it is still failing. Any help ...
0
votes
0
answers
42
views
mongodb atlas functions consuming too many connections
I have a trigger set up on a database that fires a function whenever a new document is inserted. This function generates a summary from the full document and updates a collection in another database. ...
0
votes
1
answer
98
views
RLS in synapse serverless SQL pool using views
Issue: In synapse serverless SQL pool when I try to access view data created from file stored in ADLS with AD/Entra users having "Synapse SQL pool admin" rights on the synapse workspace
and ...
0
votes
3
answers
83
views
aws QnA intent cloudformation template not working
I want to create a lex bot with serverless.yaml and I want to use the aws bedrocks builtin intent qnaintent. I am able to create the bot with intents from the serverless.yaml but I am unable to add ...
0
votes
1
answer
1k
views
Passing --args to cloud run jobs
I'm trying to pass argument to cloud run jobs in this way:
gcloud run jobs execute aa-hello-world --args="--test1","hello","--test2","world"
(In local works as ...
0
votes
1
answer
242
views
Issues converting existing express app to use serverless framework
I am currently working on an express app (API) which I now want to convert to use the serverless framework so I can deploy on AWS Lambda. I have done this before and did not have too many issues.
I ...
0
votes
1
answer
96
views
AZure function api Times out at the second call while working locally
I am using an azure function app to get some weather data using open-meteo api, to do so I need to call their API from inside my function APP. Before deploying on azure, the http triggered function ...
2
votes
0
answers
146
views
How to connect Blazor App with new Aspire serverless SignalR emulator
I struggle to connect my Blazor app to the new Aspire 9.1 Serverless SignalR emulator.
This is how I have configured my AppHost Program.cs:
var signalr = builder
.AddAzureSignalR("signalr&...
0
votes
0
answers
501
views
AWS Serverless Elasticache Valkey
Today I created Serverless Elasticache Valkey and tried to connect using code which I got from Connect to your cache section.
const {Redis} = require("ioredis");
const client = new Redis....
0
votes
0
answers
36
views
Mail Sending Problem in Vercel with Node.js and Nodemailer - Serverless Architecture Solution
I built a mail sending system with Nodemailer using Node.js. This structure works properly in the local environment, but when I take it live on Vercel, the email sending process is not successful.
I ...
0
votes
2
answers
142
views
AWS: Hosting GoLang Lambda functions on Cloudfront
I have a Lambda function in GoLang, I want to have CDN on it for region based quick access (I think Cloudfront can help me do that on AWS).
Researched so far:
I saw that Lambda@Edge is there to ...
0
votes
0
answers
39
views
How to Handle APIs which takes more than 5 seconds in serverless applications
In One of the requriement we are hitting a third Party API which does some calculation at the backend and dependent on the various factors it can take time upto 5 seconds.
Usually serverless is to be ...
0
votes
1
answer
13
views
Serverless Kafka Trigger Cannot Resolve Variables/!Ref
Serverless is unable to resolve varaibles in kafka event source, looking for a solution to resolve variables instead of hardcoded arns, which are dynamic and not automated.
functions:
compute:
...
2
votes
1
answer
111
views
How can I optimize AWS Lambda cold start time in a multi-region deployment?
I have a multi-region AWS Lambda setup to serve a global audience, but I'm experiencing high cold start latency, especially for infrequently used regions. This is affecting API response times and user ...
0
votes
0
answers
155
views
Serverless v4 ESBuild packaging ignoring non-js files
I have just upgraded to Serverless V4, and removed serverless-bundle as recommended.
Have configured esbuild with a loader:
loader:{
'.html': 'copy',
'.node': 'copy',
...
-3
votes
3
answers
158
views
Serverless how to create a function that runs for over 30 seconds on AWS?
everyone,
I am aware that a AWS lambda is only allowed to run for 30 seconds. But I am working on a feature that takes around 2 minutes to finish processing.
In fact I see the end of the request on ...
0
votes
0
answers
36
views
Attach Lambda in serverless.yaml to firehose transformation function
Currently, there is a aws_kinesis_firehose_delivery_stream resource created with terraform.
resource "aws_kinesis_firehose_delivery_stream" "test_firehose" {
name = "...
0
votes
1
answer
70
views
AWS Serverless function async: true
In the Serverless framework built with AWS, when a function is kept as
async: true
it immediately returns a 200 HTTP response, can we override this status codes.
Can somebody answer to this thanks
I ...
1
vote
1
answer
42
views
Openwhisk logging with Python zip actions
I'm a bit new to Apache Openwhisk. It is an awesome project and I'm enjoying using, and learning it. Thank you so much for creating such an amazing project!
I'm not able to figure out the correct way ...
0
votes
0
answers
173
views
How to add security groups or how to make an RDS public accessible when using SST?
I have set up an SST (Serverless Stack v3) application with an AWS RDS Postgres instance. The database should be publicly accessible so external services can connect to it.
async run() {
const ...
0
votes
1
answer
159
views
"Please specify a stack name using --stack or persist it in samconfig.toml" when deploying with Serverless Framework
I’m using the Serverless Framework (sls) to deploy an AWS Lambda function. When I run:
sls deploy --stage dev
I get this error:
✖ Error: Please specify a stack name using the --stack option, or ...
-1
votes
1
answer
183
views
Error [ERR_MODULE_NOT_FOUND]: Cannot find module occurs when invoking a serverless lambda function locally while functioning well on remote aws
To improve the project's functionality and overall performance.
As part of this effort, we updated our SLS "handler.js" file to use ES modules and renamed it to "handler.mjs".
The ...
0
votes
1
answer
973
views
Java Springboot application not able to connect to AWS Elasticache Valkey Cache (Serverless)
Trying to connect to AWS Elasticache (valkey engine: serverless: version 8.0) from my Java springboot application.
JDK 17 & springboot version 3.2.5.
Using Lettuce client to connect to Valkey ...
1
vote
1
answer
323
views
How to fix Lambda function timeout when interacting with DynamoDB using AWS SDK v3 in Node.js?
I’m building a serverless API with Node.js using AWS Lambda, and my function interacts with DynamoDB to retrieve data. However, every time I try to interact with DynamoDB, the Lambda function times ...