Skip to content

Small Python function errors on deploy Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. #14191

@hbmartin

Description

@hbmartin

I have a pure python project/repo that produces a 40 MB .vercel/output but when I go to deploy I get the error: Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB.

I can't figure out why this error is happening or how to get past it! There is virtually no debugging hooks that I've been able to find despite trying to hack du into the vercel.json commands. One possibility is that there may be some issues with local vs server .uv-cache but I simply cannot figure out how to investigate that.

When I set VERCEL_BUILD_SYSTEM_REPORT=1 I get:

▲ Build system report
• No memory or disk space problems detected
• Folder sizes on disk:
  ‣ Input source code:     1 MB
  ‣ Build cache:          <1 MB
  ‣ Output files:          6 MB
  ‣ Node modules:        350 MB

I find the Node modules size very odd given that this is a pure python project/repo. Perhaps the python code is getting bundled into node somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions