failed to send message: POST #509

Closed
opened 2026-02-16 17:27:06 -05:00 by yindo · 8 comments
Owner

Originally created by @jaysean1 on GitHub (Jul 5, 2025).

Originally assigned to: @thdxr on GitHub.

Image

I keep getting this error. Whenever I use an auth other than those of Gemini and Anthropic, such as Openrouter or Deepseek, I've tried reinstalling, but it doesn't seem to solve the problem.

Originally created by @jaysean1 on GitHub (Jul 5, 2025). Originally assigned to: @thdxr on GitHub. <img width="323" height="137" alt="Image" src="https://github.com/user-attachments/assets/4e8cc115-d29a-4eb0-a7fb-e43c8a83579f" /> I keep getting this error. Whenever I use an auth other than those of Gemini and Anthropic, such as Openrouter or Deepseek, I've tried reinstalling, but it doesn't seem to solve the problem.
yindo closed this issue 2026-02-16 17:27:06 -05:00
Author
Owner

@jensenojs commented on GitHub (Jul 5, 2025):

same

Image
@jensenojs commented on GitHub (Jul 5, 2025): same <img width="1003" height="502" alt="Image" src="https://github.com/user-attachments/assets/4aeb1f93-95fa-4dce-a0d7-8495d50cd35f" />
Author
Owner

@thdxr commented on GitHub (Jul 5, 2025):

can you try clearing ~/.cache/opencode also can i see the config if you have any?

@thdxr commented on GitHub (Jul 5, 2025): can you try clearing `~/.cache/opencode` also can i see the config if you have any?
Author
Owner

@jensenojs commented on GitHub (Jul 5, 2025):

Image

models.json

can you try clearing ~/.cache/opencode also can i see the config if you have any?


Not sure if it helps, but I installed version v0.1.194 via curl on another Fedora machine, and it works fine. For both, I barely configured anything (just set up a deepseek-api and changed to a gruvbox theme).


updated : still not working on mac (v0.1.194)

Image
@jensenojs commented on GitHub (Jul 5, 2025): <img width="1106" height="693" alt="Image" src="https://github.com/user-attachments/assets/1a7f4e81-36ee-469d-a05f-4f40904f927b" /> [models.json](https://github.com/user-attachments/files/21083902/models.json) > can you try clearing `~/.cache/opencode` also can i see the config if you have any? *** Not sure if it helps, but I installed version v0.1.194 via curl on another Fedora machine, and it works fine. For both, I barely configured anything (just set up a deepseek-api and changed to a gruvbox theme). *** updated : still not working on mac (v0.1.194) <img width="1194" height="765" alt="Image" src="https://github.com/user-attachments/assets/2c9ef27d-c35c-4a29-ad47-4e2d9ccb57e9" />
Author
Owner

@jaysean1 commented on GitHub (Jul 6, 2025):

can you try clearing ~/.cache/opencode also can i see the config if you have any?

I can run it after deleting the cache. Thx

@jaysean1 commented on GitHub (Jul 6, 2025): > can you try clearing `~/.cache/opencode` also can i see the config if you have any? I can run it after deleting the cache. Thx
Author
Owner

@jensenojs commented on GitHub (Jul 6, 2025):

After upgrading to 0.1.194 && deleting .cache, I was able to run it successfully (but this operation didn't work on v0.1.182), thank you very much.

@jensenojs commented on GitHub (Jul 6, 2025): After upgrading to 0.1.194 && deleting .cache, I was able to run it successfully (but this operation didn't work on v0.1.182), thank you very much.
Author
Owner

@tkatter commented on GitHub (Jul 7, 2025):

I am also getting this issue everytime i send a message. Only have Openrouter set up as my provider on both my Mac and Linux machine. Have never been able to get opencode to run on my mac, and on my Linux machine i seem to run into this problem every random upgrade or so. Sometimes I can fix it by clearing the .cache like @thdxr mentioned, or completely reinstalling, but that has not gotten me anywhere on my current version.

Version 0.2.5 (same thing happened on 0.2.4)

edit: for clarity, I am getting the exact same error message as @jaysean1

@tkatter commented on GitHub (Jul 7, 2025): I am also getting this issue everytime i send a message. Only have Openrouter set up as my provider on both my Mac and Linux machine. Have never been able to get opencode to run on my mac, and on my Linux machine i seem to run into this problem every random upgrade or so. Sometimes I can fix it by clearing the `.cache` like @thdxr mentioned, or completely reinstalling, but that has not gotten me anywhere on my current version. Version 0.2.5 (same thing happened on 0.2.4) edit: for clarity, I am getting the exact same error message as @jaysean1
Author
Owner

@laiqun commented on GitHub (Jul 8, 2025):

same issue +1, can't send msg after send one message, even previous msg processing done.

@laiqun commented on GitHub (Jul 8, 2025): same issue +1, can't send msg after send one message, even previous msg processing done.
Author
Owner

@laiqun commented on GitHub (Jul 8, 2025):

I notice that when fail to send message, the Context will raise to > 95%, but actually it doesn't have too much token in context.
I think it may be caused by wrong context counting or maybe caused by it will auto loading something to context.

I notice that it will auto load CLAUDE.md after first send msg.

@laiqun commented on GitHub (Jul 8, 2025): I notice that when fail to send message, the Context will raise to > 95%, but actually it doesn't have too much token in context. I think it may be caused by wrong context counting or maybe caused by it will auto loading something to context. I notice that it will auto load CLAUDE.md after first send msg.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#509