1 year ago

#77245

test-img

goinggrey

AWS API Gateway mapping templates exception handling

I am looking to encapsulate the mapping template codes in a try catch to prevent the gateway from crashing.
I wrote some complex logging algorithm to parse the request and body and log wanted parameters and cannot guarantee that it will work 100% of the time. Ideally I am looking for something like #try{ mapping templates codes } #catch(just ignore it) I've done a bit of research and it seems the only way for error handling is to either parse the response body or approach it with Lamda.

amazon-web-services

api

aws-api-gateway

vtl

0 Answers

Your Answer

Accepted video resources