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
With GLM I am getting a regular "Invalid API Parameter. Check the documentation." as well as a timeout error. Both are frequent - and - I have to type "continue" to resume the activity. Not getting similar errors for other models. Should I be increasing some time interval somewhere? Just want to bring to your notice. This is more pronounced in 4.6 rather than 4.5
yeah, I have just started getting tons of AI_APICallError: Invalid API parameter, please check the documentation. errors on GLM as well now, not sure the cause.
Zai-coding-plan seams to have problems with heavy traffic, I think, so editing provider ~/.config/opencode/opencode.json with this change works (at least for me).
I tried that. Yeah, I think it's just traffic issue. For people who are also experiencing it, try what @rekram1-node suggested. Like do a nano ~/.config/opencode/opencode.json (save you a click, if you don't know where the config file goes), and paste that.
I am still having the error even with the timeout config. Just send a empty message . like @rekram1-node is good advice. Thanks for your messages here
For people who are having the issue still, I think setting timeout helps, but the issue still persists. Likely the ZAI's side is experiencing heavy traffic
Hmm it if keeps happening we may wanna reopen this, this weekend I will get the subscription so I can start playing with it more and maybe encounter the issue
I have been running opencode with extreme usage via ZAI Coding Plan with glm-4.6 in the past few days, have not encountered this issue once.
I have had transient issues: 50x and rate limit issues (which 'Continue' resolves, or failing that starting a new session). #2892 is worst of all, because there seems to be no way of recovering.
Coming from a claude code perspective, it might help to have a retry configuration option on API failures?
I have the same issue whenever i try to use the screenshot tool for playright mcp in opencode. I tried the timeout options suggested here that dod not do the trick... maybe should i clear opencode cache ? ...i have GLM-4.6 coding plan pro ... i did not go for max ... shouod i upgrade ... what is your experience with this issue ?
Activity
github-actions commentedon Oct 1, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 1, 2025
Hm this thread may be helpful (regarding api parameter issues): #2557
You can increase timeouts for a provider if you want:
But generally I think the timeout is just the providers fault, if I notice requests hanging I like to double ESC then type "." and hit enter
ShamanicArts commentedon Oct 2, 2025
yeah, I have just started getting tons of
AI_APICallError: Invalid API parameter, please check the documentation.errors on GLM as well now, not sure the cause.rekram1-node commentedon Oct 2, 2025
@ShamanicArts which provider?
ShamanicArts commentedon Oct 2, 2025
Z.AI Coding Plan
ShamanicArts commentedon Oct 2, 2025
https://opencode.ai/s/X4oarVXT @rekram1-node
Rybens92 commentedon Oct 2, 2025
Zai-coding-plan seams to have problems with heavy traffic, I think, so editing provider ~/.config/opencode/opencode.json with this change works (at least for me).
rekram1-node commentedon Oct 2, 2025
Thx for calling this out @Rybens92
Note: I do think Zai is having a lot of traffic and scale issues, I heard several people report outages today not sure if it relates or not
Longhuiberkeley commentedon Oct 2, 2025
I tried that. Yeah, I think it's just traffic issue. For people who are also experiencing it, try what @rekram1-node suggested. Like do a
nano ~/.config/opencode/opencode.json(save you a click, if you don't know where the config file goes), and paste that.I am still having the error even with the timeout config. Just send a empty message
.like @rekram1-node is good advice. Thanks for your messages hererekram1-node commentedon Oct 2, 2025
Happy to help! any issues you have just lmk
ShamanicArts commentedon Oct 2, 2025
yes, fully resolved for me, think it was just outage symptoms!
rekram1-node commentedon Oct 2, 2025
sweet
Longhuiberkeley commentedon Oct 3, 2025
For people who are having the issue still, I think setting timeout helps, but the issue still persists. Likely the ZAI's side is experiencing heavy traffic
rekram1-node commentedon Oct 3, 2025
Hmm it if keeps happening we may wanna reopen this, this weekend I will get the subscription so I can start playing with it more and maybe encounter the issue
kierr commentedon Oct 6, 2025
I have been running opencode with extreme usage via ZAI Coding Plan with glm-4.6 in the past few days, have not encountered this issue once.
I have had transient issues: 50x and rate limit issues (which 'Continue' resolves, or failing that starting a new session). #2892 is worst of all, because there seems to be no way of recovering.
Coming from a claude code perspective, it might help to have a retry configuration option on API failures?
rekram1-node commentedon Oct 6, 2025
Yeah we do have retries currently, need to figure out what is going on with 2892 tho
Longhuiberkeley commentedon Oct 6, 2025
Reporting back, since I wrote that message 3 days ago. I haven't seen the issue again. So that's good news for me as a user 😀
felipematos commentedon Oct 13, 2025
Hi! I have frequent timeout errors using GLM models. Is there any way to solve this?
alin231127 commentedon Nov 27, 2025
I have the same issue whenever i try to use the screenshot tool for playright mcp in opencode. I tried the timeout options suggested here that dod not do the trick... maybe should i clear opencode cache ? ...i have GLM-4.6 coding plan pro ... i did not go for max ... shouod i upgrade ... what is your experience with this issue ?
rekram1-node commentedon Nov 27, 2025
@alin231127 what version r u on