# At 'custom.warmup.events': must be object

**URL:** https://forum.serverless.com/t/at-custom-warmup-events-must-be-object/16843
**Category:** Event Gateway
**Created:** [March 4, 2022, 3:33pm UTC](https://forum.serverless.com/t/at-custom-warmup-events-must-be-object/16843 "2022-03-04T15:33:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![suresh](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@suresh](https://forum.serverless.com/u/suresh)
#### Post date: [March 4, 2022, 3:33pm UTC](https://forum.serverless.com/t/at-custom-warmup-events-must-be-object/16843/1 "2022-03-04T15:33:43Z")

</div>

Hello,  
I am trying deploy the Deep learning image model, but I got error.  
My error:

Warning: Invalid configuration encountered

```auto
                                                           ndrm-app> serverless deploy
Warning: Invalid configuration encountered
  at 'custom.warmup.events': must be object
  at 'custom.warmup.timeout': must be object
  at 'functions.lambda_handler.warmup': must be object

Learn more about configuration validation here: http://slss.io/configuration-validation
                                                               configuration-validation
Deploying backgroundrm-app to stage dev (us-east-1)
Warning: WarmUp: Skipping warmer "events" creation. No functions to warm up. s to warm up.
Warning: WarmUp: Skipping warmer "timeout" creation. No functions to warm up.ns to warm up.

```

Here my yml code.

# Welcome to Serverless!

# 

# This file is the main config file for your service.

# It’s very minimal at this point and uses default values.

# You can always add more config options for more control.

# We’ve included some commented out config examples here.

# Just uncomment any of them to get that config option.

# 

# For full config options, check the docs:

# [docs.serverless.com](http://docs.serverless.com)

# 

# Happy Coding!

```auto

service: backgroundrm-app

# app and org for use with dashboard.serverless.com

#app: your-app-name

#org: your-org-name

provider:

  name: aws

  runtime: python3.7

  profile: backgroundrm-app

  region: us-east-1

  timeout: 60

  iamRoleStatements:

    - Effect: Allow

      Action:

        - s3:getObject

      Resource: arn:aws:s3:::sagemaker-m-model/models/u2net/*

    - Effect: Allow

      Action:

        - "lambda:InvokeFunction"

      Resource: "*"

custom:

  pythonRequirements:

    dockerizePip: true

    zip: true

    slim: true

    strip: false

    noDeploy:

      - docutils

      - jmespath

      - pip

      - python-dateutil

      - setuptools

      - six

      - tensorboard

    useStaticCache: true

    useDownloadCache: true

    cacheLocation: "./cache"

  warmup:

    events:

      - schedule: "rate(5 minutes)"

    timeout: 60

package:

  individually: false

  exclude:

    - package.json

    - package-log.json

    - node_modules/**

    - cache/**

    - test/**

    - __pycache__ /**

    - .pytest_cache/**

    - model/pytorch_model.bin

    - raw/**

    - .vscode/**

    - .ipynb_checkpoints/**

functions:

  lambda_handler:

    handler: handler.lambda_handler

    memorySize: 5008

    timeout: 30

    events:

      - http:

          path: u2net

          method: post

          cors: true

    warmup: true

plugins:

  - serverless-python-requirements

  - serverless-plugin-warmup

```

what was the issue

---

<div class="post-metadata">

### Author: ![vinaysaini](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/vinaysaini/32/7958_2.png) [@vinaysaini](https://forum.serverless.com/u/vinaysaini)
#### Post date: [June 26, 2024, 7:49am UTC](https://forum.serverless.com/t/at-custom-warmup-events-must-be-object/16843/2 "2024-06-26T07:49:33Z")

</div>

Did you got any solution for this? I am facing same issue.
