418
Views
8
Comments
Solved
[Ultimate PDF] UltimatePDF - "The operation has timed out"
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi,

There is a inconstant error on UltimatePDF when is used PrintToPDF, after the error appears if we try to generate the PDF again is very fast without errors.

It seems when we use the redirect approach to download the PDF is slow as well but there is no error but with this approach we can't control when the download finished if we want to put some loading on screen.

Someone have solution for that?

Thanks in advance

2023-08-28 07-00-10
Paulo Torres
Champion
Solution

The only solution I found for react is to increase the timeout of module, SetTimeout it's for HTTP call and in React doesn't work because it's an API REST call.

Here the details: https://www.outsystems.com/forums/discussion/64948/server-request-timeout-reactive-web/


UserImage.jpg
Luis Paulino

I am still getting the same error even after increasing the Server Request Timeout of the module.

Error:An error occurred while generating the pdf (url). The operation has timed out

UserImage.jpg
Puja Rani

Hi,
It happened to me that sometimes used to see no content but connection time out error inside the downloaded pdf. It was usually happening when the pdf content was large and it took time to fetch data. Since there was no way to control the download until the whole data is fetched. I just increased the timeout to 60 after that it is working. Though this is just a workaround. Not sure if this would help.

 

2023-08-28 07-00-10
Paulo Torres
Champion

I already add this problem with empty page, no query to run....

How did you increased the timeout?

Thanks


UserImage.jpg
Alexandre Yip

Hi Paulo,

you have a SetRequestTimeout method from  HTTPRequestHandler extension


Hope that it helps you,

2023-08-28 07-00-10
Paulo Torres
Champion

Thanks Alexandre.

I thought it was otherwise, because in previous versions of PDF Ultimate I think there was a Site property to define the Timeout.

And it seems exist some action but maybe it's for another thing.

Thanks a lot both guys

2023-08-28 07-00-10
Paulo Torres
Champion

It seems this approach doesn't work for me, I add the action for SetTimeout with 100 and I continue having the issue. After the error I click again and it's very fast. Some ideas?

2023-08-28 07-00-10
Paulo Torres
Champion

Any ideas? I'm in react application

2023-08-28 07-00-10
Paulo Torres
Champion
Solution

The only solution I found for react is to increase the timeout of module, SetTimeout it's for HTTP call and in React doesn't work because it's an API REST call.

Here the details: https://www.outsystems.com/forums/discussion/64948/server-request-timeout-reactive-web/


UserImage.jpg
Luis Paulino

I am still getting the same error even after increasing the Server Request Timeout of the module.

Error:An error occurred while generating the pdf (url). The operation has timed out

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.