[GH-ISSUE #4861] [bug]: JSON Body issue #1828

Closed
opened 2026-03-16 21:57:05 +03:00 by kerem · 13 comments
Owner

Originally created by @symtalha14 on GitHub (Mar 8, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4861

Originally assigned to: @CuriousCorrelation on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Trying to make a simple POST request with a JSON body. Getting the below error message. The produced cUrl however works fine.

Image

Steps to reproduce

I am using Chrome Extension as an interceptor on the desktop app.

Environment

Production

Version

Local

Originally created by @symtalha14 on GitHub (Mar 8, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4861 Originally assigned to: @CuriousCorrelation on GitHub. ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior Trying to make a simple POST request with a JSON body. Getting the below error message. The produced cUrl however works fine. ![Image](https://github.com/user-attachments/assets/16235ef7-610e-4995-b295-fc7844ac7fad) ### Steps to reproduce I am using Chrome Extension as an interceptor on the desktop app. ### Environment Production ### Version Local
kerem 2026-03-16 21:57:05 +03:00
Author
Owner

@matifanger commented on GitHub (Mar 8, 2025):

Same here, it's probably the latest update

<!-- gh-comment-id:2708405450 --> @matifanger commented on GitHub (Mar 8, 2025): Same here, it's probably the latest update
Author
Owner

@yanglee2421 commented on GitHub (Mar 9, 2025):

Same issue +1

<!-- gh-comment-id:2708920018 --> @yanglee2421 commented on GitHub (Mar 9, 2025): Same issue +1
Author
Owner

@ddbdzung commented on GitHub (Mar 10, 2025):

Fix by manually install extension from source and cherry-pick my commit, it works fine

<!-- gh-comment-id:2709634261 --> @ddbdzung commented on GitHub (Mar 10, 2025): Fix by manually install extension from source and cherry-pick my commit, it works fine
Author
Owner

@LearnShare commented on GitHub (Mar 10, 2025):

Same issue here, with desktop 25.2.1
And upload a png but got mimetype: text/plain.

<!-- gh-comment-id:2710391086 --> @LearnShare commented on GitHub (Mar 10, 2025): Same issue here, with desktop 25.2.1 And upload a png but got mimetype: `text/plain`.
Author
Owner

@ddbdzung commented on GitHub (Mar 10, 2025):

Same issue here, with desktop 25.2.1
And upload a png but got mimetype: text/plain.

It seems that the plugin is changed from axios to fetch built-in fn, but all features haven't been tested,

<!-- gh-comment-id:2710397281 --> @ddbdzung commented on GitHub (Mar 10, 2025): > Same issue here, with desktop 25.2.1 > And upload a png but got mimetype: `text/plain`. It seems that the plugin is changed from axios to fetch built-in fn, but all features haven't been tested,
Author
Owner

@matifanger commented on GitHub (Mar 10, 2025):

how this is not fixed yet, cant believe it

<!-- gh-comment-id:2711626157 --> @matifanger commented on GitHub (Mar 10, 2025): how this is not fixed yet, cant believe it
Author
Owner

@drjester0627 commented on GitHub (Mar 11, 2025):

When sending json body to FastAPI using Pydantic model, "data" is not working. It should be "data-raw".

In curl command,
curl --request POST --url 'http://localhost/abc' --data '<json data>' -> not working

curl --request POST --url 'http://localhost/abc' --data-raw '<json data>' -> working

I think hoppscotch should be fixed using 'data-raw' when user selects application/~~~ content-type.

<!-- gh-comment-id:2712660258 --> @drjester0627 commented on GitHub (Mar 11, 2025): When sending json body to FastAPI using Pydantic model, "data" is not working. It should be "data-raw". In curl command, `curl --request POST --url 'http://localhost/abc' --data '<json data>'` -> not working `curl --request POST --url 'http://localhost/abc' --data-raw '<json data>'` -> working I think hoppscotch should be fixed using 'data-raw' when user selects application/~~~ content-type.
Author
Owner

@jamesgeorge007 commented on GitHub (Mar 11, 2025):

Hi, we have a PR with the fix scheduled for the next patch release.

<!-- gh-comment-id:2713643182 --> @jamesgeorge007 commented on GitHub (Mar 11, 2025): Hi, we have a [PR](https://github.com/hoppscotch/hoppscotch/pull/4860) with the fix scheduled for the next patch release.
Author
Owner

@diauweb commented on GitHub (Mar 11, 2025):

Hi, we have a PR with the fix scheduled for the next patch release.

Could you please share the timetable for the next patch release? This issue is a regressive feature that has been disrupting the app's functionality for several days.

<!-- gh-comment-id:2714846102 --> @diauweb commented on GitHub (Mar 11, 2025): > Hi, we have a [PR](https://github.com/hoppscotch/hoppscotch/pull/4860) with the fix scheduled for the next patch release. Could you please share the timetable for the next patch release? This issue is a regressive feature that has been disrupting the app's functionality for several days.
Author
Owner

@jamesgeorge007 commented on GitHub (Mar 12, 2025):

Hi, we have a PR with the fix scheduled for the next patch release.

Could you please share the timetable for the next patch release? This issue is a regressive feature that has been disrupting the app's functionality for several days.

We are evaluating a few required updates for the deployment pipeline and aiming to issue the patch release later today.

<!-- gh-comment-id:2717183461 --> @jamesgeorge007 commented on GitHub (Mar 12, 2025): > > Hi, we have a [PR](https://github.com/hoppscotch/hoppscotch/pull/4860) with the fix scheduled for the next patch release. > > Could you please share the timetable for the next patch release? This issue is a regressive feature that has been disrupting the app's functionality for several days. We are evaluating a few required updates for the deployment pipeline and aiming to issue the patch release later today.
Author
Owner

@jamesgeorge007 commented on GitHub (Mar 12, 2025):

Hi, the above fix is now live with the latest release. Please let us know if the issue persists.

Please note: There is an ongoing investigation regarding the unavailability of linux/amd64 based images in the Docker Hub registry. This issue will not impact the cloud offering (web and Desktop App).

<!-- gh-comment-id:2718613752 --> @jamesgeorge007 commented on GitHub (Mar 12, 2025): Hi, the above fix is now live with the latest release. Please let us know if the issue persists. Please note: There is an ongoing investigation regarding the unavailability of `linux/amd64` based images in the Docker Hub registry. This issue will not impact the cloud offering (web and Desktop App).
Author
Owner

@jamesgeorge007 commented on GitHub (Mar 13, 2025):

The latest release is now live on all platforms; closing this issue. Please let us know if you have any feedback.

<!-- gh-comment-id:2720065477 --> @jamesgeorge007 commented on GitHub (Mar 13, 2025): The latest release is now live on all platforms; closing this issue. Please let us know if you have any feedback.
Author
Owner

@LearnShare commented on GitHub (Mar 15, 2025):

Same issue here, with desktop 25.2.1 And upload a png but got mimetype: text/plain.

Hi @jamesgeorge007
Still got got mimetype: text/plain when upload a png file, with desktop 25.2.2.
But the web app works fine.

POST /api/file

multipart/form-data

{
  "type": "action-type",
  "file": "image.png"
}
<!-- gh-comment-id:2726243841 --> @LearnShare commented on GitHub (Mar 15, 2025): > Same issue here, with desktop 25.2.1 And upload a png but got mimetype: `text/plain`. Hi @jamesgeorge007 Still got got mimetype: `text/plain` when upload a png file, with desktop 25.2.2. But the web app works fine. ``` POST /api/file multipart/form-data { "type": "action-type", "file": "image.png" } ```
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#1828
No description provided.