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

Question

Question

Dreaded PdfNetworkError

asked on February 16

I'm receiving this error when the forms process is trying to email a pdf copy of the form.  

The PDF generator was unable to contact the Laserfiche Forms server using the configured Primary Forms Server URL. Please check that you can access the Primary Forms Server URL with Chromium from the machine where Laserfiche Forms is installed. [LFF4112-PdfNetworkError]

This form has been working fine for years until last week.  I can skip over the steps and the process completes as expected.  I have other forms that email pdf copies and they work just fine.  

I've tried as many solutions that I can find in the community including...

- Changed the theme

- Disabled the signature

- Verified that the Site Bindings in IIS was blank

 

This only happens on this one form.  Any suggestions?

 

0 0

Replies

replied on February 17 Show version history

I figured this out, at least for my situation.  Hopefully it will help others, too.

Our form loads with a Token in the url, used for lookup authentication.  We have a home grown service that builds the tokens and returns the url with the unique token in the url.  But we have users copying the link, with the token included, and sending it to other users.  The token doesn't belong to them so it causes problems with their form.

To prevent that, I strip the parameters from the url like this...

window.history.replaceState({}, document.title, window.location.pathname);

 

Apparently, there is something happening behind the scenes, possibly with the pdf generator, that this messes up.  I commented out this line and the problem goes away and the form works perfectly.  Uncomment it and problem returns. 

The next question was why did it work for my test form but it didn't work for this form?  I believe it is because the test form is so small and has no javascript that it completely renders the form before the pdf generator can act on it.  But the form that was having problems is much larger and has extensive javascript.  I think it takes so long to render the large form, that the javascript is still executing when the url changes and the pdf generator has a problem with that.  That's my theory.  Whether that is correct or not, removing that command fixed it.

So why did it just start being a problem?  Our servers patch weekly...sometimes more often.  And there likely could have been a patch that changed that somehow.  

Hope this helps...

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

Sign in to reply to this post.