BREAKING: Cloudflare Workers AI GLM 5.2 Unavailable – Workarounds Inside [46j9vvprj159]
Cloudflare Workers AI GLM 5.2 is down affecting indie projects. Immediate workarounds, detection steps, and alternatives for your stack.
BREAKING: Cloudflare Workers AI GLM 5.2 Unavailable
Status: Identified | Severity: MINOR | Impact: Partial Disruption
---
What's Down & Who's Affected
Cloudflare's Workers AI GLM 5.2 model is currently unavailable. This impacts:
@cf/glm-4-vision or @cf/glm-4-9b-it endpoints via Workers AIGood news: This is a partial outage. Other Workers AI models (Llama, Mistral, etc.) are operational. Your workers themselves are running fine—only GLM 5.2 requests are failing.
---
Immediate Workarounds (Do This Now)
1. Switch Model Immediately
If your use case allows, pivot to alternatives within Workers AI: ```javascript // Instead of: const response = await ai.run('@cf/glm-4-9b-it', { prompt });// Use: const response = await ai.run('@cf/mistral/mistral-7b-instruct-v0.1', { prompt }); // or const response = await ai.run('@cf/meta/llama-2-7b-chat-fp16', { prompt }); ```
2. Implement Fallback Logic
Add error handling to detect GLM failures: ```javascript try { return await ai.run('@cf/glm-4-9b-it', { prompt }); } catch (e) { console.warn('GLM unavailable, using fallback'); return await ai.run('@cf/mistral/mistral-7b-instruct-v0.1', { prompt }); } ```3. Queue Requests
Buffer non-critical requests using Durable Objects or a job queue: ```javascript // Store requests, retry when GLM recovers await durableObject.queue({ prompt, timestamp: Date.now() }); ```4. Rate-Limit Gracefully
Return a 503 Service Unavailable for users rather than failing silently: ```javascript if (modelUnavailable) { return new Response('Service temporarily unavailable', { status: 503 }); } ```---
How to Check If You're Affected
1. Check your logs: Search for GLM or @cf/glm-4 errors
2. Test directly:
```bash
curl -X POST https://api.cloudflare.com/client/v4/accounts/{id}/ai/run/@cf/glm-4-9b-it \
-H "Authorization: Bearer {token}"
```
3. Monitor Cloudflare Status: https://www.cloudflarestatus.com
4. Search your error tracking (Sentry, LogRocket, etc.) for GLM or model unavailable
---
Alternative AI Tools to Consider
Short-term alternatives:
Cost consideration: Most alternatives cost more than Cloudflare's bundled pricing, so this is a temporary workaround, not a permanent switch.
---
Monitor Recovery
✅ Real-time monitoring:
✅ Automate testing: ```javascript // Add to your monitoring dashboard setInterval(async () => { try { await ai.run('@cf/glm-4-9b-it', { prompt: 'test' }); console.log('GLM recovered'); } catch (e) { console.warn('GLM still down'); } }, 60000); ```
---
Bottom Line
This is solvable in 5 minutes with a fallback model. Use alternative Workers AI models today, implement error handling, and monitor recovery. Your product doesn't need to go down.
Questions? Drop them in the indie hackers community or check CF's status updates.