TwitchLib / TwitchLib.Unity

TwitchLib repository representing all code belonging to the implementation of TwitchLib for Unity. Maintained primarily by LuckyNoS7evin.
164 stars 33 forks source link

Error handling for API requests? #45

Open AaronMeyers opened 5 years ago

AaronMeyers commented 5 years ago

Sorry if I missed it, but is there some way to handle errors/timeouts with calls to the Twitch API using the API class?

I've noticed that if there is a timeout or a bad parameter, if using API.Invoke(), the callback function just never gets called and if using API.InvokeAsync, the coroutine just never gets beyond the yield return statement.

Is there a way to catch errors and timeouts or is this just something we're supposed to design around?

bruinp8n commented 3 years ago

I have the same issue??

cai-tan commented 2 years ago

I'd also like to know how we're supposed to handle this...