Skip to content

GLM Coding Plan - Frequent Errors #2898

Closed

Description

@cvkmohan

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

Activity

  1. github-actions commented on Oct 1, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 1, 2025

    @rekram1-node
    Contributor

    Hm this thread may be helpful (regarding api parameter issues): #2557

    You can increase timeouts for a provider if you want:

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "zai-coding-plan": {
          "options": {
            "timeout": 600000
          }
        }
      }
    }
    

    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

  3. ShamanicArts commented on Oct 2, 2025

    @ShamanicArts

    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.

  4. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Contributor

    @ShamanicArts which provider?

  5. ShamanicArts commented on Oct 2, 2025

    @ShamanicArts

    Z.AI Coding Plan

  6. ShamanicArts commented on Oct 2, 2025

    @ShamanicArts
  7. Rybens92 commented on Oct 2, 2025

    @Rybens92

    "zai-coding-plan": {
    "options": {
    "timeout": 600000
    }
    }

    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).

  8. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Contributor

    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

  9. Longhuiberkeley commented on Oct 2, 2025

    @Longhuiberkeley

    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

  10. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Contributor

    Happy to help! any issues you have just lmk

  11. ShamanicArts commented on Oct 2, 2025

    @ShamanicArts

    yes, fully resolved for me, think it was just outage symptoms!

  12. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    Contributor

    sweet

  13. Longhuiberkeley commented on Oct 3, 2025

    @Longhuiberkeley

    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

  14. rekram1-node commented on Oct 3, 2025

    @rekram1-node
    Contributor

    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

  15. kierr commented on Oct 6, 2025

    @kierr

    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?

  16. rekram1-node commented on Oct 6, 2025

    @rekram1-node
    Contributor

    Yeah we do have retries currently, need to figure out what is going on with 2892 tho

  17. Longhuiberkeley commented on Oct 6, 2025

    @Longhuiberkeley

    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 😀

  18. felipematos commented on Oct 13, 2025

    @felipematos

    Hi! I have frequent timeout errors using GLM models. Is there any way to solve this?

  19. alin231127 commented on Nov 27, 2025

    @alin231127

    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 ?

  20. rekram1-node commented on Nov 27, 2025

    @rekram1-node
    Contributor

    @alin231127 what version r u on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions