You are viewing limited content. For full access, please sign in.

Question

Question

Unexpected server response (500) while retrieving PDF

asked on October 10, 2019

Hi everyone,

 

How can resolve this issue about PDF, when i view a PDF file i got these issue "PDF.js v1.7.225 (build: 17d135f)
Message: Unexpected server response (500) while retrieving PDF "http://localmachine/laserfiche/Viewer/Pdf/StreamingHandler.ashx?r=REPO&id=186"."

 

Thanks

Matt

1 0

Replies

replied on December 6, 2019

Does anyone have any insights on this? I am getting this same error

0 0
replied on December 6, 2019

Is there additional information in the event viewer on the server machine?

0 0
replied on December 6, 2019

On the server I see a lot of messages related to invalid connection

 

Message 1

 

Invalid Connection
Operation: /laserfiche/RepositoryServiceW.ashx/SessionKeepalive
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.MakeWebServiceReturn
  WebAccessServices.HttpHandlers.BaseWAIHttpHandler.ProcessRequestInternal
  WebAccessServices.HttpHandlers.BaseWAIHttpHandler.ProcessRequest
Exception details:
  Message: Invalid Connection
  Stack trace:    at Laserfiche.WebAccess.Common.WARepository.get_Session()
   at WebAccessServices.HttpHandlers.RepositoryServiceW.SessionKeepalive(String repoName)

  Session: uv40sajf
 

Message 2

 

Invalid Connection
Operation: /laserfiche/RepositoryServiceW.ashx/SessionKeepalive
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.Standardize
  WebAccessServices.HttpHandlers.RepositoryServiceW.SessionKeepalive
  System.RuntimeMethodHandle.InvokeMethod
Exception details:
  Message: Invalid Connection
  Stack trace:    at Laserfiche.WebAccess.Common.WARepository.get_Session()
   at WebAccessServices.HttpHandlers.RepositoryServiceW.SessionKeepalive(String repoName)

  Session: uv40sajf
 

Message 3

 

Invalid Connection
Operation: /laserfiche/Viewer/PDF/StreamingHandler.ashx?r=SOL&id=2960933
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.Standardize
  Laserfiche.WebAccess.Common.Streaming.StreamingHandler.ProcessRequest
  System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
Exception details:
  Message: Invalid Connection
  Stack trace:    at Laserfiche.WebAccess.Common.WARepository.get_Session()
   at Laserfiche.WebAccess.Common.Util.OpenEntries.GetEntry(Int32 id, OpenOption ooption, ShortcutOption scoption)
   at Laserfiche.WebAccess.Common.Streaming.StreamingHandler.ProcessRequest(HttpContext context)

  Session: o1j5qqz5
 

Message 4 (it repeated this message 4 times)

 

Invalid Connection
Operation: /laserfiche/UserSettingsServiceW.ashx/SetLocaleInfo
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.MakeWebServiceReturn
  WebAccessServices.HttpHandlers.BaseWAIHttpHandler.ProcessRequestInternal
  WebAccessServices.HttpHandlers.BaseWAIHttpHandler.ProcessRequest
Exception details:
  Message: Invalid Connection
  Stack trace:    at Laserfiche.WebAccess.Common.WARepository.get_Session()
   at Laserfiche.WebAccess.Common.UserSettings.WAUserSettings..ctor(WARepository repo)
   at Laserfiche.WebAccess.Common.UserSettings.TrusteeSettings..ctor(WARepository repo)
   at Laserfiche.WebAccess.Common.UserSettings.WAUserSettings.GetUserSettings(WARepository repo)
   at Laserfiche.WebAccess.Common.Util.SettingsCache.GetUserSettings(WARepository repo, Boolean checkExpired)
   at Laserfiche.WebAccess.Common.ConnectionManager.NotifyTimeZoneChange(Int32 utcOffset, Int32 dstOffset, String dbname, HttpSessionState Session)
   at WebAccessServices.HttpHandlers.UserSettingsServiceW.SetLocaleInfo(String repoName, BrowserLocaleInfo localeInfo)

  Session: teja3uvc
 

This is one of the first invalid connection messages that pops up when trying to retrieve the PDF from the web client

 

Invalid Connection
Operation: /laserfiche/Viewer/Pdf/StreamingHandler.ashx?r=SOL&id=2960933
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.ErrorHandler.LogException
  Laserfiche.WebAccess.Common.Util.ErrorHandler.Standardize
  Laserfiche.WebAccess.Common.Streaming.StreamingHandler.ProcessRequest
  System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
Exception details:
  Message: Invalid Connection
  Stack trace:    at Laserfiche.WebAccess.Common.WARepository.get_Session()
   at Laserfiche.WebAccess.Common.Util.OpenEntries.GetEntry(Int32 id, OpenOption ooption, ShortcutOption scoption)
   at Laserfiche.WebAccess.Common.Streaming.StreamingHandler.ProcessRequest(HttpContext context)

  Session: plyxenqk

 

I tried to attach a copy of the event log but that extension is not allowed.  Can I change the extension and then reupload it?

0 0
replied on December 10, 2019

That "Invalid Connection" suggests that the server thinks that the user is no longer logged in. Is there a delay between when the user opens the document and when they are trying to view the pdf component that could account for a timeout? Does refreshing the page resolve the error at all?

0 0
replied on December 11, 2019

There is no delay.  This was working until about two and a half weeks ago.  Refreshing the page does not resolve the error.  

0 0
replied on December 11, 2019

Interesting. Did it stop working for just 1 user or for everyone? Do you see the issue across browsers? My first guess is that a required session header isn't being received anymore - was there a change to network configuration that could account for that?

0 0
replied on December 11, 2019

It stopped working for everyone and the issue is happening across all browsers as well.  We are not aware of the any network configuration changes.  We have reached out to Microsoft because this is taking place via a link to Web Access from Dynamics and that is hosted on Microsoft's cloud.

0 0
replied on December 12, 2019

Is it just a link in a Dynamics page that opens in a new tab? It seems like it would be easy to run a test that removes Dynamics from the equation. And if that's the scenario I don't expect Dynamics to be a factor.

If you don't make progress with Microsoft I'd suggest working with your SP to open a support case with us.

0 0
replied on December 29, 2019

We have a client that is getting this error now also, but from inside the Laserfiche Web Client. It started after windows updates were applied to the server. Interestingly the metadata for the affected files is not displaying as well now. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.