Hi
Some of my monthly scheduled report failed this month.
Report had to be send with xls and pdf by mail.
User used to run the scheduled report is the admin of solarwinds.
I received the mail with this message : Unable to retrieve url: XXXXX/.../Report.aspx using PDF type.
And no pdf file was attached.
The xls file attached contain a login page with also "The session times out", "Enable cookies to login", "Enable Javascript to login".
My core.businesslayer.log file contain this :
2020-12-01 03:14:23,674 [123] ERROR SolarWinds.Orion.Core.Actions.Utility.WebPageFetcher - FAIL: This session is no longer valid. If you wish to reuse the session later, please consider calling GetCookies to retain the session cookies, then reuse these cookies through HtmlToPdfOptions.Cookies with another session. (4)
EO.Pdf.Internal.k4: This session is no longer valid. If you wish to reuse the session later, please consider calling GetCookies to retain the session cookies, then reuse these cookies through HtmlToPdfOptions.Cookies with another session. (4)
at EO.Pdf.Internal.lr.l()
at EO.Pdf.Internal.lr.a(a A_0)
at EO.Pdf.Internal.lr.a(cj A_0)
at EO.Pdf.HtmlToPdfSession.Dispose()
at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream)
at SolarWinds.Orion.Core.Actions.Utility.WebPageFetcher.GetPdf(String accountId, String url)
2020-12-01 03:14:23,674 [123] ERROR ReportingLogger - Error during fetching pdf document
2020-12-01 03:14:23,674 [123] ERROR ReportingLogger - Error during fetching url: SAVIP-SONDE:8787/.../Report.aspx using PDF type
System.ArgumentNullException: Value cannot be null.
Parameter name: PDF document
at SolarWinds.Orion.Core.Actions.Impl.Email.EmailUrlExecutor.BuildReportingMailMessage(ISmtpClient smtpClient, EmailConfiguration config, ReportingActionContext reportingContext)
So, I supposed my session timed out and pdf cannot be created and so attached to email of course.
But the questions are :
- Why session are sometimes timed out? (because sometimes it works fine)
- How to fix this?
Thanks for your help.