confluentinc / confluentinc/vscode

Intermittent syntax error in `consume.ts` - Unexpected end of JSON input

Open
#776 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
34
Forks
17
Avg merge
1d 22h
Merged PRs (30d)
8

Description

Sentry is picking up an occasional error with converting a response payload to json in message consumption (`consume.ts`).

Sentry Issue: [VSCODE-EXTENSION-AJ](https://confluent.sentry.io/issues/5943076343/?referrer=github_integration)

```
SyntaxError: Unexpected end of JSON input
File "..\src\consume.ts", line 514, in
const payload = await error.response.json();
...
(2 additional frame(s) were not displayed)
```

Contributor guide

Open the contributing guide

Research direction

Start at src/consume.ts line 514, where message-consumption error handling calls error.response.json(), and review the surrounding response path. Use the linked Sentry report to investigate the intermittent incomplete JSON response; the issue is done when the failure is understood and the handling is verified not to produce this syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.