Error Handling in callwithrequest

Hello Team,

I am working on custom kibana plugin ,where i am executing 'GET' and 'POST' requests
I think plugin uses hapi js and saw Joi code in index.js
could you please help me with effective error handling in callwithrequest.

Thank you,

callWIthRequest returns a promise, so either async/await or catching the error. has an example. Does that help?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.