Auth_check custom middleware is working fine whereas pre, post and response Custom Middleware are not working in TYK (opensource v4.3.4)

Hi,

I am trying to add custom middleware which a grpc-go plugin, but the middleware in pre, post and response are not working whereas the same plugins are working fine in auth_check.
I am attaching a sample json of the API definition for reference:
“custom_middleware”: {
“pre”: [
{
“name”: “RecordHeader(testHeader,testHeader)”,
“require_session”: true
}
],
“post”: [
{
“name”: “RecordHeader(testHeader1,testHeader1)”,
“require_session”: true
}
],
“post_key_auth”: null,
“auth_check”: {
“name”: “RecordHeader(testHeader2,testHeader2)”,
“require_session”: true
},
“response”: [
{
“name”: “RecordHeader(testHeader3,testHeader3)”,
“require_session”: true
}
],
“driver”: “grpc”,
“id_extractor”: {
“extract_from”: “”,
“extract_with”: “”,
“extractor_config”: null
}
},

Thanks!

Hi @Shubham_M_Mishra,

Can you explain “not working”?

Please share Gateway logs. Plugin code as well, if that’s okay.