Want to create a custom error message plugin to remodify the error message from the oauth,spike arrest .
I have tried capturing error in onerror_* event handles but it seems not capturing
Can You suggest me how to write custom plugin for this case?
Hey @Anil Sagar can you help here?
The on error is triggered when an error is emitted by your custom plugin. Not when built in plugins throw an error. You can not customize the error message, at least not without modifying the shipped plugins.
Shipped plugins means built-in plugins or some other
These ones: https://github.com/apigee/microgateway-plugins
Can we modify these plugins according to our use?
Of course. It is open source and Apache 2. You can fork the project or create a new set of plugins with the features you need.
when these error hooks are called?
what i am doing is i throw an error in custom plugin on onrequest calling next(err) and catching in onError_request in plugin but these hooks are not called.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |