-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hey, this one might be tricky to figure out. Here is some context. We get an exception thrown during our session timeout. I'm just wondering how this is handled or should be handled. The url we provide to the pdf-viewer is an AWS signed url. Everything loads and renders fine. During a session timeout, we check if the user is still auth, which seems to do a re-render of the component. We do try another attempt to load a url to verify auth, though that fails and we unmount the component.
I've noticed this before but wanted to confirm, Rendering cancelled, page 1 exception is coming from pdfjs-dist. Is the react-pdf library handling this exception? Would you think this exception is coming from the pdfjs trying to reload from the expired signed url and can't? If so (or not), should the onLoadError or maybe another a new onError method be fired to handle these issues? I'm just currently unclear of when this error occurs and how to handle it.
