Clarifai / lambdafai

Lambdafai is a simple framework for building and deploying REST APIs using AWS Lambda, API Gateway, DynamoDB, and S3.
MIT License
37 stars 4 forks source link

Creating a lambda with no API Gateway routes throws an error #57

Open dankantor opened 8 years ago

dankantor commented 8 years ago
Deploying to stage: dev

BadRequestException: The REST API doesn't contain any methods
    at Object.extractError (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/protocol/json.js:43:27)
    at Request.extractError (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/protocol/rest_json.js:37:8)
    at Request.callListeners (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    at Request.emit (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/request.js:596:14)
    at Request.transition (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/request.js:21:10)
    at AcceptorStateMachine.runTo (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/request.js:37:9)
    at Request.<anonymous> (/Users/dankantor/work/bizops/ops-lambda/node_modules/lambdafai/node_modules/aws-sdk/lib/request.js:598:12)