You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent AI_TypeValidationError when submitting requests #5031
This is my first time using OpenCode so apologies if I'm not clear as I am still learning how to use it.
Immediately after I set up Zen, I selected Grok Code Fast 1, I ran /init in planning mode on my empty project and got this:
AI_TypeValidationError: Type validation failed: Value: {"code":"Some resource has been exhausted","error":"Channel xcode-0828-joint-klfix-lap7-unified-zpw7m-0 is overloaded: load=599414, num_requests=11"}.
Error message: [{"code":"invalid_union","errors":[[{"expected":"array","code":"invalid_type","path":["choices"],"message":"Invalid input: expected array, received undefined"}],[{"expected":"object","code":"invalid_type","path":["error"],"message":"Invalid input: expected object, received string"}]],"path":[],"message":"Invalid input"}]
I ignored it, and continued to plan with no issues.
After I switched to build mode, it worked well until it seemed to have finished.
AI_TypeValidationError: Type validation failed: Value: {"code":"Some resource has been exhausted","error":"Channel xcode-0828-joint-klfix-lap7-unified-cnwmr-0 is overloaded: load=944000, num_requests=11"}.
Error message: [{"code":"invalid_union","errors":[[{"expected":"array","code":"invalid_type","path":["choices"],"message":"Invalid input: expected array, received undefined"}],[{"expected":"object","code":"invalid_type","path":["error"],"message":"Invalid input: expected object, received string"}]],"path":[],"message":"Invalid input"}]
It seems a bit inconsistent because I tried it in a new project and instance with no issues.
This is grok having scaling issues, this morning I merged a fix so that we will properly retry it, they arent sending error status codes tehy are sending a 200 but then streaming this error chunk.
So i merged some logic to handle that, itll be in the next release
Activity
rekram1-node commentedon Dec 3, 2025
This is grok having scaling issues, this morning I merged a fix so that we will properly retry it, they arent sending error status codes tehy are sending a 200 but then streaming this error chunk.
So i merged some logic to handle that, itll be in the next release
keegabit commentedon Dec 3, 2025
@rekram1-node Sweet, thank you! Could you possibly link the PR so I can take a look if its not too much trouble?
rekram1-node commentedon Dec 3, 2025
It's pretty "dumb": 91db82c