How to resolve "The connection to the server was reset. Server returned status error"

I am getting "The connection to the server was reset. Server returned status error" while processing on pptx file.(Converting images from pptx slides)

The general logs tell a different story as all logs are captured even after the error has occurred.

(the error is generated at 80 percent in progress bar but logs well after 100 percent are captured by general logs in service center)

I have gone through all other posts regarding the error.

The progressBar indicator uses AJAX refresh for operation.

The error arises while processing on slides with large numbers(Note: all slides were successfully converted to Images in my case).

have tried to increase the timeout but the error was not resolved.


Kindly guide me as I am quite new to the outsystems platform.


Please refer screenshot for reference.

SS1:

SS2:

Hi,

usually if the work you're doing exceeds a certain threshold you might want to consider doing that work asynchronously using timers.

The timeout you're getting is probably from the webserver and happens alot with screens that do heavy processing.

Bruno Gonçalves wrote:

Hi,

usually if the work you're doing exceeds a certain threshold you might want to consider doing that work asynchronously using timers.

The timeout you're getting is probably from the webserver and happens alot with screens that do heavy processing.

Hi Bruno,

I have dynamic input parameters for the action and I need the generated output in next step.

i tried to put the action in a process and wait till process is completed but still got Timeout error.

Can you suggest any other approach to resoolve this issue?


I would recommend that you continue what you've already done but control the timeout. I have timers with a 10min timeout and after each batch I check if I'm nearing that 10min marker, if so I exit the flow but just before exiting I wake the timer so it runs again. Ideally you should track how many iterations of the timer you want to run / wake.

Bruno Gonçalves wrote:

You might want to see this video from minute onward 2:14:28

https://www.outsystems.com/learn/lesson/1133/master-class-on-best-practices-and-timers/?LearningPathId=0


*from minute 2:14:28 onward


Hi Bruno,


I referred the link mentioned by you but the input i am using to process is a binary data coming from a .Net plugin.

This would limit me to add any flag parameter as i cannot segregate in each item.

Also, when i tried to run whole action in a process(make it asynchronous and use sleep actions, the error message was displayed after 1.50 min as IIS timeout was occurred.)

I can put whole action in timer if i can find a method to keep whole screen from timing out.

Hi @Bruno Gonçalves,

You mentioned web server timeout on previous replies.

I tried to look for a way to increase web server timeout but was not able to do so.

Can you please guide me if i can increase the web server timeout by any means.

Thanks,

Ishan

I think what you're looking for is the "IIS execution timeout"

Ishan Wasnik wrote:

Hi Bruno,


I referred the link mentioned by you but the input i am using to process is a binary data coming from a .Net plugin.

This would limit me to add any flag parameter as i cannot segregate in each item.

Also, when i tried to run whole action in a process(make it asynchronous and use sleep actions, the error message was displayed after 1.50 min as IIS timeout was occurred.)

I can put whole action in timer if i can find a method to keep whole screen from timing out.

"I can put whole action in timer if i can find a method to keep whole screen from timing out." 


The solution for these issues (in most cases) is to do the heavy work via processes. Request on one screen, insert into a queue, process runs over that queue, another screen to see the result.

This way you won't depend so heavily on screens, the screens are solely for quick requests and to see the end result.

But without looking at your project I can't say for sure that this would fit your needs as opposed to some other more elaborate solution.