Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-23 Thread Nuwan Mudalige
Thanks all. I was able to make it work by removing the "Content-Type" header and adding MIME type as an application/binary. On Tue, Apr 23, 2024 at 12:43 AM Dmitri T wrote: > Nuwan Mudalige wrote: > > Hi, > > > > I have a file upload API call which is working fine on Postman. > > > > While I

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Dmitri T
Nuwan Mudalige wrote: Hi, I have a file upload API call which is working fine on Postman. While I am recording that Postman request by Jmeter it is throwing "415 Unsupported Media Type" error. I manually built a Jmeter test following the Postman but still failed with the same issue.

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Nuwan Mudalige
Just tried again, no luck. Here are the additional details about body contents Postman request body type is form-data with following contents. Key: file, Value=attachment (a file), Content-type: multipart/form-data (these parameters are recorded under Files upload tab in Jmeter)

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Aditya Singh
Try with Content-Type value as “application/xml“ or “application/json” depending upon your response type. Adi On Tue, 23 Apr 2024 at 6:50 AM, Nuwan Mudalige wrote: > multipart/form-data; boundary=bzfW > > > > On Mon, Apr 22, 2024 at 8:48 PM Aditya Singh > wrote: > > > What is

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Nuwan Mudalige
multipart/form-data; boundary=bzfW On Mon, Apr 22, 2024 at 8:48 PM Aditya Singh wrote: > What is the content-type header value? > > > Adi > > On Tue, 23 Apr 2024 at 5:41 AM, Nuwan Mudalige > wrote: > > > Yes, Adi. Tried that but still the same result in Jmeter. > > > > On

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Aditya Singh
What is the content-type header value? Adi On Tue, 23 Apr 2024 at 5:41 AM, Nuwan Mudalige wrote: > Yes, Adi. Tried that but still the same result in Jmeter. > > On Mon, Apr 22, 2024 at 8:01 PM Aditya Singh > wrote: > > > Hi, > > Try checking the header that’s being passed in JMeter. > > Is

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Nuwan Mudalige
Yes, Adi. Tried that but still the same result in Jmeter. On Mon, Apr 22, 2024 at 8:01 PM Aditya Singh wrote: > Hi, > Try checking the header that’s being passed in JMeter. > Is it similar to what you have in Postman?If not, make it similar and give > it a try. > > Regards > Adi > > On Tue, 23

Re: Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Aditya Singh
Hi, Try checking the header that’s being passed in JMeter. Is it similar to what you have in Postman?If not, make it similar and give it a try. Regards Adi On Tue, 23 Apr 2024 at 4:21 AM, Nuwan Mudalige wrote: > Hi, > > I have a file upload API call which is working fine on Postman. > > While

Getting 415 Unsupported Media Type error while recording Postman request by Jmeter

2024-04-22 Thread Nuwan Mudalige
Hi, I have a file upload API call which is working fine on Postman. While I am recording that Postman request by Jmeter it is throwing "415 Unsupported Media Type" error. I manually built a Jmeter test following the Postman but still failed with the same issue. Appreciate your expertise