felixbade/transcribe

Display errors in the UI

Opened this issue · 4 comments

At the moment the errors only go to the console and the UI says ”Transcribing...” forever.

This is annoying because sometimes the transcribing does take a long time.

ontl commented

Yeah I tried submitting an mp3 for translation, but it was over-quota for the key I was using (in fact, I hadn't properly enabled billing for that key).

No errors displayed in UI, but Console says:

Failed to load resource: the server responded with a status of 429 ()

That results in segments being undefined when we try to console.log it at line 72 of index.js, and also segments then not being iterable on line 76.

Would recommend passing along the error in the UI.

Oh… I’ll remove the claim ”no quota” from README!

Example situation, pretty common.
Screenshot 2023-05-11 at 14 34 57