[GH-ISSUE #180] POST request json bodies aren't sent #70

Closed
opened 2026-03-16 13:11:09 +03:00 by kerem · 6 comments
Owner

Originally created by @AndrewBastin on GitHub (Oct 3, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/180

Describe the bug
The POST request body (from the built-in JSON editor) does not seem to reach the recipient.

To Reproduce
Steps to reproduce the behavior:

  1. Create a test server (like this in express)
  2. Send a request to the server in postwoman with some JSON
  3. We get '{}' as the POST body printed on the server side

Expected behavior
Well, the server should display the correct body

Originally created by @AndrewBastin on GitHub (Oct 3, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/180 **Describe the bug** The POST request body (from the built-in JSON editor) does not seem to reach the recipient. **To Reproduce** Steps to reproduce the behavior: 1. Create a test server (like [this](https://gist.github.com/AndrewBastin/a8806d4378f0aa8c51ccb3b2f846ef30) in express) 2. Send a request to the server in postwoman with some JSON 3. We get '{}' as the POST body printed on the server side **Expected behavior** Well, the server should display the correct body
kerem 2026-03-16 13:11:09 +03:00
Author
Owner

@liyasthomas commented on GitHub (Oct 4, 2019):

Can you submit a screenshot of console?

<!-- gh-comment-id:538174545 --> @liyasthomas commented on GitHub (Oct 4, 2019): Can you submit a screenshot of console?
Author
Owner

@AndrewBastin commented on GitHub (Oct 4, 2019):

The image

The first 2 are through postwoman (preflight and the actual request respectively)
The third is from Postman which is the intended result

<!-- gh-comment-id:538176142 --> @AndrewBastin commented on GitHub (Oct 4, 2019): ![The image](https://i.imgur.com/3NmRy4b.jpg) The first 2 are through postwoman (preflight and the actual request respectively) The third is from Postman which is the intended result
Author
Owner

@liyasthomas commented on GitHub (Oct 4, 2019):

chuckle i'm in danger

Did you check the network tab and the request info? Check network tab and see if the requests has body.

POST for other servers seems to be working for both raw and key-value pairs.

<!-- gh-comment-id:538176528 --> @liyasthomas commented on GitHub (Oct 4, 2019): chuckle i'm in danger Did you check the network tab and the request info? Check network tab and see if the requests has body. POST for other servers seems to be working for both raw and key-value pairs.
Author
Owner

@SimplyComplexable commented on GitHub (Oct 4, 2019):

@liyasthomas I can take a look into this.

<!-- gh-comment-id:538178295 --> @SimplyComplexable commented on GitHub (Oct 4, 2019): @liyasthomas I can take a look into this.
Author
Owner

@AndrewBastin commented on GitHub (Oct 4, 2019):

@SimplyComplexable feel free to do so 😊

<!-- gh-comment-id:538182154 --> @AndrewBastin commented on GitHub (Oct 4, 2019): @SimplyComplexable feel free to do so 😊
Author
Owner

@AndrewBastin commented on GitHub (Oct 4, 2019):

Oops, sorry, it was a thing with body-parser and Content-Type definitions 😓

Closing the issue, sorry guys 😅

<!-- gh-comment-id:538486140 --> @AndrewBastin commented on GitHub (Oct 4, 2019): Oops, sorry, it was a thing with body-parser and Content-Type definitions :sweat: Closing the issue, sorry guys :sweat_smile:
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#70
No description provided.