continuedev / continuedev/continue

Error handling model response: Headers is not a constructor

Open
#12,261 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind:bug
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Before submitting your bug report
Relevant environment info
- OS:
- Continue version:
- IDE version:
- Model:
- config:
  
name: Local Config
version: 1.0.0
schema: v1
models:
  - name: DeepSeek Chat
    provider: deepseek
    model: deepseek-chat
    apiKey: <-->
  - name: Gemini 3.1 Pro
    provider: gemini
    model: gemini-3.1-pro-preview
    apiKey: <-->

  
  OR link to agent in Continue hub:
Description

Error handling model respons

Image

e
There was an error handling the response from Gemini 3.1 Pro.

Please try to submit your message again.

Resubmit last message
View error output
Headers is not a constructor

To reproduce
Image
Log output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no source file, test, or entry point. Start by reproducing the Gemini 3.1 Pro request and inspect the error output behind “View error output,” then trace the model-response handling that reaches “Headers is not a constructor.” Done means the response is handled successfully without this error and the relevant regression is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.