dawson-org / dawson-cli

A serverless web framework for Node.js on AWS (CloudFormation, CloudFront, API Gateway, Lambda)
https://dawson.sh
GNU General Public License v3.0
713 stars 25 forks source link

API Gateway "Missing authentication token" and missing method #166

Closed azappa closed 7 years ago

azappa commented 7 years ago
service.api = {
  path: '{lang}/service/{uid}'
};

lambda will not be uploaded (I tried three times with dawson deploy). Don't know if it anything related to dawson or API Gateway (or my fault) because in the same project I have the same parameters' names in another route and related lambda was uploaded without errors

singleEvent.api = {
  path: '{lang}/event/{uid}'
};

with that everything is fine... Last but not least the first example runs without problems on my local machine.

lusentis commented 7 years ago

I've updated the title / description to make it more clear.

Hi, I've found a bug that causes an API Gateway Method to be linked to a wrong Resource (i.e. path), when it ends with a {param} in braces whose name is also used in another function's path.

I'll dig deeper asap, for now, you can just rename the last parameter {uid} in one of the two paths (e.g. {uid2}).

This bug only affects API Gateway, so the Development Server is working as expected.

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.