You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searched both open and closed issues for duplicates of this issue
Title adequately and concisely reflects the feature or the bug
Restify Version: 8.5.1 Node.js Version: v14.16.1
Expected behaviour
curl http://localhost:8880/api/users/a766c023-34ec-40d2-923c-e8259a28d2c5 should return Got:/api/users/:id
Actual behaviour
curl http://localhost:8880/api/users/a766c023-34ec-40d2-923c-e8259a28d2c5 returns {"code":"ResourceNotFound","message":"/api/users/a766c023-34ec-40d2-923c -e8259a28d2c5 does not exist"}
⚠️ What is very important and why I think this is a serious bug, is that if you comment out the 1st, 2nd or 4th route the route works. There is something about that trifecta of routes that causes this issue with the 3rd route. Reordering the routes causes issues, and the original application has routes in that order.
We encountered this issue originally while upgrading from an old version of restify, but going forward it means that if anyone adds another route, we could just break other routes in some non obvious way.
Are you willing and able to fix this?
In theory yes, although I'm not sure since I think it's a bug in the dependent project. I just didn't feel it was adequately captured in the bug reports for this project.
The text was updated successfully, but these errors were encountered:
Restify Version: 8.5.1
Node.js Version: v14.16.1
Expected behaviour
curl http://localhost:8880/api/users/a766c023-34ec-40d2-923c-e8259a28d2c5
should returnGot:/api/users/:id
Actual behaviour
curl http://localhost:8880/api/users/a766c023-34ec-40d2-923c-e8259a28d2c5
returns{"code":"ResourceNotFound","message":"/api/users/a766c023-34ec-40d2-923c -e8259a28d2c5 does not exist"}
Repro case
Cause
I think it's related to delvedor/find-my-way#161
We encountered this issue originally while upgrading from an old version of restify, but going forward it means that if anyone adds another route, we could just break other routes in some non obvious way.
Are you willing and able to fix this?
In theory yes, although I'm not sure since I think it's a bug in the dependent project. I just didn't feel it was adequately captured in the bug reports for this project.
The text was updated successfully, but these errors were encountered: