Skip to content

Exception 'Rendering cancelled, page 1' rendering page with signed url #42

@NathanVeeva

Description

@NathanVeeva

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions