Bug 65503 - HTTP Request Post with large JSON body fails
Summary: HTTP Request Post with large JSON body fails
Status: NEEDINFO
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.4.1
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 10:57 UTC by Colin McCormack
Modified: 2021-08-17 12:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin McCormack 2021-08-17 10:57:02 UTC
Hi,
The following bug:
 - occurs on latest JMeter version
 - occurrs within a java sampler or HTTP Request (either Http client or Java)

This bug is never seen in Postman.

When i post a http req with a large JSON body - the call fails with a 400 bad request, 1 in every ~10 times (NOTE: the larger the body size the more frequent the rate of failure)
So when a call succeeds the sizing noted is like so:

	Size in bytes: 97763
	Sent bytes:69803
	Headers size in bytes: 449
	Body size in bytes: 97314

When the call fails the sizing shown is truncated as it were:

	Size in bytes: 590
	Sent bytes:69803
	Headers size in bytes: 155
	Body size in bytes: 435
Comment 1 Felix Schumacher 2021-08-17 12:10:11 UTC
Can you give more information about your setup?

How many threads are you using, how often do you call your app? Are you sure, that JMeter is the culprit and not the app itself?

Can you do a network dump and compare the broken and good requests?
Comment 2 Colin McCormack 2021-08-17 12:43:07 UTC
Apologies - i'll update with more info soon - for now:

- 1 thread
- 1st call always fails by the way, then intermittently afterwards

This doesn't happen when Postman is used so i ruled out my app as being in-play

thanks, i'll attempt dumps etc asap