3,559 questions
0
votes
1
answer
117
views
Polars lazyframe update() silently failing in a serverless Cloud Function (OOM error)
I am trying to apply changes from one dataframe (source file is a 7 MB .CSV) to a larger dataframe (source file approx. 3GB .CSV), e.g. update existing rows with matching IDs, while at the same time ...
0
votes
0
answers
75
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
45
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 ...
0
votes
1
answer
78
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
92
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
38
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
53
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
24
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
90
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
288
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
153
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
57
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
69
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
85
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
356
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 ...