TypeError: Header '14' Perplexity Model on Windows Environment #2870

Closed
opened 2026-02-16 17:37:37 -05:00 by yindo · 4 comments
Owner

Originally created by @iamreverie on GitHub (Nov 14, 2025).

Description

Hey there, not sure if this is still related to #3549 but I tried on a WSL project and this issue is working now. Then I want to try it on a windows environment installed via chocolatey. I'm trying to /init in the folder and I am getting this one.

Already tried clearing and uninstalling opencode.

TypeError: Header '14' has invalid value: 'Bearer 2;55;15M|

Image

Any idea or help you can give on this?

OpenCode version

1.0.65

Steps to reproduce

  1. Run opencode in Windows Environment code base
  2. Set to Perplexity model Sonar Pro
  3. Using Plan or Build agent, trigger a command

Screenshot and/or share link

https://opencode.ai/s/oLWKT2VR

Operating System

Windows 11

Terminal

Windows Powershell

Originally created by @iamreverie on GitHub (Nov 14, 2025). ### Description Hey there, not sure if this is still related to #3549 but I tried on a WSL project and this issue is working now. Then I want to try it on a windows environment installed via chocolatey. I'm trying to /init in the folder and I am getting this one. Already tried clearing and uninstalling opencode. `TypeError: Header '14' has invalid value: 'Bearer 2;55;15M| ` <img width="1127" height="206" alt="Image" src="https://github.com/user-attachments/assets/839bf215-0248-4a2c-b936-6c1a1068cb7f" /> Any idea or help you can give on this? ### OpenCode version 1.0.65 ### Steps to reproduce 1. Run opencode in Windows Environment code base 2. Set to Perplexity model Sonar Pro 3. Using Plan or Build agent, trigger a command ### Screenshot and/or share link https://opencode.ai/s/oLWKT2VR ### Operating System Windows 11 ### Terminal Windows Powershell
yindo added the bug label 2026-02-16 17:37:37 -05:00
yindo closed this issue 2026-02-16 17:37:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 14, 2025):

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

  • #3549: Both involve Perplexity model errors, though #3549 was a ProviderInitError and this is a Header TypeError. However, the user mentions this issue might be related to #3549, suggesting they may have the same root cause in Perplexity model authentication/configuration.

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

@github-actions[bot] commented on GitHub (Nov 14, 2025): This issue might be a duplicate of existing issues. Please check: - #3549: Both involve Perplexity model errors, though #3549 was a ProviderInitError and this is a Header TypeError. However, the user mentions this issue might be related to #3549, suggesting they may have the same root cause in Perplexity model authentication/configuration. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 14, 2025):

It seems like your bearer token is invalid?

@rekram1-node commented on GitHub (Nov 14, 2025): It seems like your bearer token is invalid?
Author
Owner

@rekram1-node commented on GitHub (Nov 14, 2025):

what token do u see in ~/.local/share/opencode/auth.json

@rekram1-node commented on GitHub (Nov 14, 2025): what token do u see in ~/.local/share/opencode/auth.json
Author
Owner

@iamreverie commented on GitHub (Nov 14, 2025):

You were right. It has got something to do with my tokens. Thanks for pointing that out.

@iamreverie commented on GitHub (Nov 14, 2025): You were right. It has got something to do with my tokens. Thanks for pointing that out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2870