-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: selvendran.ayyaswamy <selvendran.ayyaswamy@toyota.com>
- Loading branch information
1 parent
50f83d0
commit 45edbfa
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45edbfa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a major breaking change. All our services are not gonna break. And this is a patch version upgrade? It should have been a major version bump. Our services are auto updating patch versions. So they will break if they are build with this new version.
It might "error out with 404" if you are setting up a new service. But for everyone else using this library. And have routes that works. This will totally mess it up.
In my event handler I have
staff/admin/{proxy+}
and in my serverless-express server I have a route that simply matches on for example/list
. That works great in 4.3.9 or below. That is how everyone have managed until now.It might "error out with 404" if you make your route like
/staff/admin/list
. But you have to think about existing users. We are using 4.3.9 as it is. Changing this "issue" (I like it better if I can just route on the proxy part alone so it is not an improvement for me) breaks it for everyone using proxy on 4.3.9.45edbfa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm facing the same issue @alexanderbh is facing right now
45edbfa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you have
staff/admin/{proxy+}
at your SAM template it doesn't make sense to use/staff/admin/list
at the lambda code level. That means that your lambda can't be setup to handle a different event on a different path. Your lambda code should be agnostic of the mount path you are using on the Api Gateway