Your Digital Media Has Never Looked So Good

 
xavier
Topic Author
Posts: 12
Joined: Sun Oct 23, 2016 7:50 pm

roUrlTransfer payload limitation ?

Thu Jul 05, 2018 7:15 pm

Hi,

I want to make a POST request with a payload / body request that is kind of huge in terms of number of characters (around 1200). I am using AyncPostFromString but I got a 500 response from my server. The same payload against the exact same server is working just fine if I am using a plugin like Advance Rest Client or Postman.
I have made some test and reduce my payload and found out that if payload size in less than 1024 characters t is working just fine, if it is higher than 1024 characters it just fails...
I hava also tried with AsyncPostFromFile but same results...
For info, I am not able to check logs on server side yet (need to go through several people to get access to logs). 

Anyone already experienced that and is there a way to by pass that and allowing big payload ?

Thanks

Thanks
 
User avatar
RokuKC
Posts: 305
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

Re: roUrlTransfer payload limitation ?

Thu Jul 19, 2018 4:19 pm

xavier wrote:
Hi,

I want to make a POST request with a payload / body request that is kind of huge in terms of number of characters (around 1200). I am using AyncPostFromString but I got a 500 response from my server. The same payload against the exact same server is working just fine if I am using a plugin like Advance Rest Client or Postman.
I have made some test and reduce my payload and found out that if payload size in less than 1024 characters t is working just fine, if it is higher than 1024 characters it just fails...

...


Make sure that the roUrlTransfer object is not being disposed immediately.

If you create the roUrlTransfer object, call Async*, then exit the function (or otherwise release the object) without holding on to a reference that it would likely abort the transfer.

Otherwise, there is not any such small limit on the transfer size that I'm aware of.
 
ForumUser
Posts: 1
Joined: Tue Nov 20, 2018 10:49 pm

Re: roUrlTransfer payload limitation ?

Tue Nov 20, 2018 10:55 pm

I am also facing the same problem, in AyncPostFromString if the payload size is greater than 1024 then i am getting 500 response.If it is less than 1024 size then it succeed. I checked with server team but they are saying during failure time they are not getting any request.Please help me in this.

Thanks
 
User avatar
RokuNB
Posts: 448
Joined: Fri Mar 31, 2017 2:22 pm

Re: roUrlTransfer payload limitation ?

Wed Nov 21, 2018 1:26 pm

1024 bytes is way too small to bother with Async methods.
There is something else wrong there.

500 is internal server error.
Use packet sniffer (e.g. WireShark) to see what's going on. Read server's debug logs

Who is online

Users browsing this forum: No registered users and 1 guest