innFactory / react-native-dialogflow

A React-Native Bridge for the Google Dialogflow (API.AI) SDK
https://innfactory.de/softwareentwicklung/ui-ux/sprachsteuerung-mit-api-ai-in-einer-react-native-app/
MIT License
199 stars 63 forks source link

Error handler for setConfiguration #66

Open PvanHengel opened 5 years ago

PvanHengel commented 5 years ago

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

adamsiwiec commented 5 years ago

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

asadadams commented 4 years ago

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