pantsel / kong-middleman-plugin

A Kong plugin that enables you to make an extra HTTP POST request before calling an API.
MIT License
156 stars 63 forks source link

what is the error code will be returned by middleman plugin incase of rejection from middleservice ? #27

Open abdulrazakbg opened 2 years ago

abdulrazakbg commented 2 years ago

Hi, I am sending 412 error code from the middle service where as kong returning 500 internal server error.

getting below error in ingress-controller

2021/10/22 05:33:49 [error] 1098#0: *35236 [kong] init.lua:282 [middleman] /usr/local/share/lua/5.1/kong/plugins/middleman/access.lua:118: attempt to call field 'send' (a nil value), client: 127.0.0.1, server: kong, request: "GET /maps/my-app/places HTTP/1.1", host: "localhost:8080"