Skip to content

An error occurred: ApiGatewayDeploymentxxxxx - No integration defined for method - when v1.28 was used #5100

Closed
@densbozz

Description

@densbozz

This is a (Bug Report)

This error started July 4 and coincidentally 1.28.0 was released.
our CodeBuild is failing since then.

In our CodeBuild spec...

------------------------ code build spec ---------------

version: 0.2

phases:
install:
commands:
- ls -a
- npm install -g serverless
build:
commands:
- npm install --only=dev
post_build:
commands:
- serverless deploy --stage $APP_DEPLOYMENT_ENVIRONMENT --package serverless


Description

For bug reports:

  • What went wrong? - CodeBuild failed. This also impacted our update on existing API G where it somehow deleted method (OPTIONS) on some api endpoints.
  • What did you expect should have happened? - our build was successful before, there are no other config or yml changes implemented except on business application code.
  • What was the config you used? - no update on config
  • What stacktrace or error message from your provider did you see?

Additional Data - Error Stack in Code Build

Serverless: Checking Stack update progress...
....................................................................................................................................
Serverless: Operation failed!

Serverless Error ---------------------------------------

An error occurred: ApiGatewayDeploymentxxxxxxx - No integration defined for method (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: xxxxxxxxxxxxxxxxxxx).

Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com

Your Environment Information -----------------------------
OS: linux
Node Version: 6.3.1
Serverless Version: 1.27.3

[Container] 2018/07/06 04:46:55 Command did not exit successfully serverless deploy --stage $APP_DEPLOYMENT_ENVIRONMENT --package serverless exit status 1
[Container] 2018/07/06 04:46:55 Phase complete: POST_BUILD Success: false
[Container] 2018/07/06 04:46:55 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: serverless deploy --stage $APP_DEPLOYMENT_ENVIRONMENT --package serverless. Reason: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions