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

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

Warning: Invalid configuration encountered

                                                           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

Happy Coding!


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