Question

Function exceeded limit in deployment - following structure of Typescript example?

Hi, I am trying to deploy a Typescript + Fastify API to Digital Ocean Functions. I have referred to the example typescript repo: https://github.com/digitalocean/sample-functions-typescript-helloworld and have structured my project in the same manner.

My structure is as follows:

functions
│   ├── packages
│   │   └── api
│   │       └── crud-api
│   │           ├── package.json
│   │           ├── package-lock.json
│   │           ├── schema.sql
│   │           ├── src
│   │           │   ├── config
│   │           │   │   └── supabase.ts
│   │           │   ├── index.ts
│   │           │   ├── middleware
│   │           │   │   ├── auth.ts
│   │           │   │   ├── validate.ts
│   │           │   │   └── validation.ts
│   │           │   ├── routes
│   │           │   │   ├── auth.ts
│   │           │   │   ├── <hidden>.ts
│   │           │   │   ├── <hidden>.ts
│   │           │   │   ├── <hidden>.ts
│   │           │   │   ├── <hidden>.ts
│   │           │   │   └── <hidden>.ts
│   │           │   ├── services
│   │           │   │   ├── <hidden>.ts
│   │           │   │   └── <hidden>.ts
│   │           │   ├── types
│   │           │   │   └── index.ts
│   │           │   └── utils
│   │           │       ├── auth.ts
│   │           │       ├── logger.ts
│   │           │       └── storage.ts
│   │           ├── tsconfig.dev.json
│   │           └── tsconfig.json
│   └── project.yml

My project is very straight forward, CRUD endpoints to a database with less than 100 entries.

The result of doctl serverless deploy functions --remote-build

Deploying '/home/my-project/functions'
  to namespace 'fn-****-****-****-****-********'
  on host 'https://faas-lon1-****.doserverless.co'
Submitted function 'api/my-api' for remote building and deployment in runtime nodejs:18 (id: 972732c8a3d64c4fa732c8a3d63c4f46)
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...
Processing of action 'api/my-api' is still running remotely ...

Failures:
Error: While deploying action 'api/my-api' (running remote build): The function exceeded its time limits of 120000 milliseconds.

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.