``` } catch (groqError) { console.log(`Groq API failed: ${groqError.message}. Attempting W

 } catch (groqError) {
        console.log(`Groq API failed: ${groqError.message}. Attempting Workers AI failover.`);
        
        try {
          // Workers AI Whisper Failover
          console.log(`Using Workers AI failover for ${audioFile}`);
          const aiResponse = await this.env.AI.run('@cf/openai/whisper-large-v3-turbo', {
            audio: [...new Uint8Array(audioData)],
            language: 'en'
          });
          
          transcriptionResponse = { text: aiResponse.text };
          usedFailover = true;
          failoverType = 'workers-ai';
          
        } catch (workersAiError) {
          // If Workers AI also fails, let the existing EC2 fallback handle it
          console.log(`Workers AI failover failed: ${workersAiError.message}. Falling back to EC2.`);
          throw groqError; // Rethrow original error to trigger EC2 fallback
        }
      }


Error processing queue message: Error: Durable Object's isolate exceeded its memory limit and was reset.
2025-04-02 14:29:51:489
UTC
Error processing f576d688-9957-4cfd-816e-a0c75c34b02c_1743604179380.webm: Durable Object's isolate exceeded its memory limit and was reset


I sent a 35mb audio file to Workers AI Whisper v3 Turbo. I am on paid plan. Any idea why this didnt work and i hit the DO memeory limit?
Was this page helpful?