ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[BUG] Anthropic Claude 3 Error Message - json { "error": true, "message": "Failed to fetch" }

Open
#4,687 16 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

Any chat requests using any of the models: Sonnet, Haiku or Opus result in the error message:

```json
{
"error": true,
"message": "Failed to fetch"
}
```

### Steps to Reproduce

In settings:
Model Provider: Anthropic
Endpoint Address: https://api.anthropic.com
Anthropic API Key: Entered (verified working elsewhere)
API Version: 2023-06-01
Custom Models: left blank
Model: claude-opus-3-20240229(Anthropic)
All other settings as per default.

### Expected Behavior

Normal chat response from server.

### Screenshots

![Claude](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/155590729/7637ed24-993e-47b1-8a4c-10f7239021f7)

### Deployment Method

- [ ] Docker
- [ ] Vercel
- [ ] Server

### Desktop OS

Windows 10

### Desktop Browser

Firefox

### Desktop Browser Version

Windows Version 2.12.3

### Smartphone Device

_No response_

### Smartphone OS

_No response_

### Smartphone Browser

_No response_

### Smartphone Browser Version

_No response_

### Additional Logs

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Reproduce an Anthropic chat request with the listed endpoint, API version, model, and browser settings, then trace the request path that produces the “Failed to fetch” response. Done means Sonnet, Haiku, and Opus requests return normal chat responses instead of this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.