- Issue created by @mglaman
- 🇮🇳India narendraR Jaipur, India
I tested this manually and found that an
AiRequestErrorException
is thrown when the limit is reached. As a result, it is caught by the genericcatch (\Exception $e)
block, which is not very helpful in this scenario. - 🇺🇸United States mglaman WI, USA
which is not very helpful in this scenario.
How isn't it very helpful?
- 🇮🇳India narendraR Jaipur, India
Re #6 🐛 Uncaught exceptions when determining solvability of AI request Active , I mean to say that we are not getting expected exception when quota is exhausted. We are not getting
AiQuotaException
instead we getAiRequestErrorException
due to which we will get 'Something went wrong' in response which will be not that useful. - 🇺🇸United States mglaman WI, USA
@narendrar ah yeah, I see. I was getting that exception. But the problem is that there are so many AI module exceptions without a way of knowing it is an AI module one without tracking each. I opened ✨ Provide an exception interface all exceptions implement Active so it'd be easier to catch this.
I'm guessing we should just always return the exception message regardless. We're not stable yet. ✨ Dispatch AiExceptionEvent when a provider throws an exception Active is a feature request I made that allows third parties to customize exception messages handled by integrations like XB AI.
- 🇺🇸United States tim.plunkett Philadelphia
I'm postponing this issue on the two from #8: