Error using webwrite: “Recv failure: Connection was reset”
I am using webwrite and get the following error:
"Error connecting to [targeturl]: Recv failure: Connection was reset"
This is the matlab code:
options = weboptions(‘MediaType’,’application/x-www-form-urlencoded’,’Timeout’,Inf);
response = webwrite(url,data,options);
When I execute my equivalent url/data call from Chrome, it works just fine.
It’s knowingly a semi-long wait time for the response. (I’m requesting my target server to build a large CSV dataset then respond with the URL for the CSV). ‘response’ is simply a text string of the CSV url. (Separate code to fetch the CSV works just fine)
The url/data call used to work fine with a Timeout of 900s, then I increased my request to ask for a dataset about 10%-15% larger. Now I keep getting the above error, even though the Timeout upper limit should actually be a little over 2000s. I’ve also tried manual Timeout thesholds at 1000, 1200, 1800, etc to no avail.
It seems like even thought the Timeout is 2000+… something is still timing out…I am using webwrite and get the following error:
"Error connecting to [targeturl]: Recv failure: Connection was reset"
This is the matlab code:
options = weboptions(‘MediaType’,’application/x-www-form-urlencoded’,’Timeout’,Inf);
response = webwrite(url,data,options);
When I execute my equivalent url/data call from Chrome, it works just fine.
It’s knowingly a semi-long wait time for the response. (I’m requesting my target server to build a large CSV dataset then respond with the URL for the CSV). ‘response’ is simply a text string of the CSV url. (Separate code to fetch the CSV works just fine)
The url/data call used to work fine with a Timeout of 900s, then I increased my request to ask for a dataset about 10%-15% larger. Now I keep getting the above error, even though the Timeout upper limit should actually be a little over 2000s. I’ve also tried manual Timeout thesholds at 1000, 1200, 1800, etc to no avail.
It seems like even thought the Timeout is 2000+… something is still timing out… I am using webwrite and get the following error:
"Error connecting to [targeturl]: Recv failure: Connection was reset"
This is the matlab code:
options = weboptions(‘MediaType’,’application/x-www-form-urlencoded’,’Timeout’,Inf);
response = webwrite(url,data,options);
When I execute my equivalent url/data call from Chrome, it works just fine.
It’s knowingly a semi-long wait time for the response. (I’m requesting my target server to build a large CSV dataset then respond with the URL for the CSV). ‘response’ is simply a text string of the CSV url. (Separate code to fetch the CSV works just fine)
The url/data call used to work fine with a Timeout of 900s, then I increased my request to ask for a dataset about 10%-15% larger. Now I keep getting the above error, even though the Timeout upper limit should actually be a little over 2000s. I’ve also tried manual Timeout thesholds at 1000, 1200, 1800, etc to no avail.
It seems like even thought the Timeout is 2000+… something is still timing out… webwrite, timeout MATLAB Answers — New Questions