Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"same hierarchical level" Error on HTTP (beta) API Gateway

Im trying to make a new HTTP API gateway but keep getting this error when I try to make routes with multiple parameters I want something like this

ANY /{param1}/entity/{param2}

ANY /{param1}/other/{param3}

Not sure why this keeps failing...

like image 574
FSpi Avatar asked Oct 18 '25 20:10

FSpi


1 Answers

I encountered this issue in serverless.yml when renaming a path parameter.

The workaround is to:

  1. Take down the route (comment the said route in serverless.yml)
  2. Deploy
  3. Bring the route back with the new parameter (uncomment the said route)
  4. Deploy again

For more reference check https://github.com/serverless/serverless/issues/3785

like image 52
niconiconiconi Avatar answered Oct 20 '25 11:10

niconiconiconi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!