[GH-ISSUE #4530] [bug]: version:2024.10.1, if the request type in the request body is application/json and the content is not standard JSON, the request cannot be processed correctly. #1661

Open
opened 2026-03-16 21:18:37 +03:00 by kerem · 3 comments
Owner

Originally created by @rtlney16 on GitHub (Nov 12, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4530

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

iShot_2024-11-12_14 48 17 iShot_2024-11-12_14 47 53

Steps to reproduce

In the latest version, if the request type in the request body is application/json and the content is not standard JSON, the request cannot be processed correctly.

Environment

Production

Version

Cloud

Originally created by @rtlney16 on GitHub (Nov 12, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4530 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior <img width="509" alt="iShot_2024-11-12_14 48 17" src="https://github.com/user-attachments/assets/21f5badb-ea27-4db1-9e55-b4ba66c548da"> <img width="751" alt="iShot_2024-11-12_14 47 53" src="https://github.com/user-attachments/assets/1d5abd62-2ca8-4a6d-9e87-7941ab8a4658"> ### Steps to reproduce In the latest version, if the request type in the request body is application/json and the content is not standard JSON, the request cannot be processed correctly. ### Environment Production ### Version Cloud
Author
Owner

@ImNicolasTheDev commented on GitHub (Nov 20, 2024):

Hello!
Did you tried with other content types (other available json content-types)? Maybe you could also try with text/html or text/plain content-types?

<!-- gh-comment-id:2488185063 --> @ImNicolasTheDev commented on GitHub (Nov 20, 2024): Hello! Did you tried with other content types (other available json content-types)? Maybe you could also try with text/html or text/plain content-types?
Author
Owner

@rtlney16 commented on GitHub (Nov 21, 2024):

Hello! Did you tried with other content types (other available json content-types)? Maybe you could also try with text/html or text/plain content-types?

My requirement is to use application/json, and there is no problem in 24.9.3.I also tested with text/html and text/plain, and there is a problem.

<!-- gh-comment-id:2490204147 --> @rtlney16 commented on GitHub (Nov 21, 2024): > Hello! Did you tried with other content types (other available json content-types)? Maybe you could also try with text/html or text/plain content-types? My requirement is to use application/json, and there is no problem in 24.9.3.I also tested with text/html and text/plain, and there is a problem.
Author
Owner

@passionroro commented on GitHub (Jun 30, 2025):

👋 I'd like to revive this issue !

Indeed, if you pass a badly formatted JSON, the request will be processed but no error will be returned, which is confusing.

Example:

{
    "id": 123,
}

A JSON parser would return :

Error: Parse error on line 2:
{    "id": 123,}
---------------^
Expecting 'STRING', got '}'

But no error is indicated. IMO, hoppscotch should indicate that the JSON is incorrectly formatted, like what Bruno does

Thanks

<!-- gh-comment-id:3018897532 --> @passionroro commented on GitHub (Jun 30, 2025): :wave: I'd like to revive this issue ! Indeed, if you pass a badly formatted JSON, the request will be processed but no error will be returned, which is confusing. Example: ```json { "id": 123, } ``` A JSON parser would return : ``` Error: Parse error on line 2: { "id": 123,} ---------------^ Expecting 'STRING', got '}' ``` But no error is indicated. IMO, hoppscotch should indicate that the JSON is incorrectly formatted, like what Bruno does Thanks ✨
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1661
No description provided.