Open krishna1st opened 5 years ago
@krishna1st based on commit history it appears this repo is no longer maintained by Airbnb
@krishna1st Yes, Airbnb released it some time ago, so it's up for grabs. And all other involved parties moved on to React (or Vue) based frameworks like Next.js
If you're invested a lot into this project, feel free to create PR and we'll get it merged.
I want to handle error if any model api get failed. I couldn't figure out, how can i handle it Here is more controller
index: function(params, callback) {
var phoneNo = params['phoneNo']; var spec = { model: {model: 'Email', params: params}, email: {model: 'Email', params: params}, phone: {model: 'Phone', params: params}, user: {model: 'User', params: params} }; if(phoneNo){ spec['hexagon'] = {model: 'Hexagon', params: params1}; } this.app.fetch(spec, {'timeout' : 5000}, function(err, result) { callback(err, result); });
In case if my Hexagon model get failed then it directly through the error and server show error like below
Error: ERROR fetching model 'hexagon' with options '{"parse":true,"headers":{"auth-key":"098bc240588033041ea1e6e47e9b880","User-Agent":"Rendr RestAdapter; Node.js"},"timeout":5000,"data":{"phoneNo":"XXXX","emailId":"XXX","userId":"123XXX}}'. Response: {"body":"
Is there any way where I can handle this error on controller or model side.