react-native-dialogflow icon indicating copy to clipboard operation
react-native-dialogflow copied to clipboard

Error handler for setConfiguration

Open PvanHengel opened this issue 5 years ago • 2 comments

Hi,

It seems that if you call the setConfiguration method there is no easy way to capture errors such as network down or authentication issues. There should be a promise or callback or some way of checking if there is an error. Errors don’t bubble up either so we aren’t unable to wrap in a try catch block they simply write out to console.error

Thoughts? Peter

PvanHengel avatar Jun 11 '19 22:06 PvanHengel

Not sure why the authors of this package didn't add that initially. It is a must!

adamsiwiec avatar Jul 11 '19 20:07 adamsiwiec

@adamsiwiec @PvanHengel did you find a way to handle errors for setConfiguration

asadadams avatar Apr 16 '20 15:04 asadadams