-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot have multiple functions targeting the same path with different methods #1909
Comments
This also resolved itself by re-creating the stack. #1908 |
I have this error too. When I run "serverless remove", then "serverless deploy -v" though, it didn't resolve the issue. This is a problem since I have a normal API that follows the CRUD standard format (like django-rest-framework, or AngularJS Resource. I want to have URLs like:
I'm fine with doing exotic things to achieve this, I just want this URL format. Here is the error I get:
|
Wait no! Cancel this! It's just a bit of a poorly phrased error! Future people! Here was my problem: So essentially, I had two functions as down below, with two paths like this:
And both paths needed the same key, so I should have used {taskId} both times! The only request I have for a developer seeing this is maybe to give a better error message than the one AWS gives.
|
Serverless Framework Version:
1.0.0-beta.2
Operating System:
OSX 10.11.6
Expected Behavior:
Have the following configuration, one method
GET user/profile
anotherPOST user/profile
and receive an error on deployment.Actual Behavior:
The text was updated successfully, but these errors were encountered: