Documents not opening in offline mode with v11.2.0

WebViewer Version:
11.2.0
Do you have an issue with a specific file(s)? NO
Can you reproduce using one of our samples or online demos? Offline support not there on Demo
Are you using the WebViewer server? NO
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No

Please give a brief summary of your issue:
(Think of this as an email subject)
With the latest version of WebViewer 11.2.0 I m not able to open files in offline. Its working fine with Online versions. But when I try same file in offline by downloading it through PartRetriver its thorwing JS error.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please check below JS error

webviewer-core.min.js:2140 Uncaught (in promise) TypeError: za.getFile is not a function
    at h.<anonymous> (webviewer-core.min.js:2140:407)
    at b (webviewer-core.min.js:66:130)
    at Object.next (webviewer-core.min.js:64:490)
    at webviewer-core.min.js:64:422
    at new Promise (<anonymous>)
    at ka (webviewer-core.min.js:64:203)
    at Ca.loadAsync (webviewer-core.min.js:2138:383)
    at h.<anonymous> (webviewer-core.min.js:3219:39)
    at b (webviewer-core.min.js:66:130)
    at Object.next (webviewer-core.min.js:64:490)

webviewer-core.min.js:3219 Uncaught (in promise) TypeError: e.getFile is not a function
    at h.<anonymous> (webviewer-core.min.js:3219:160)
    at b (webviewer-core.min.js:66:130)
    at Object.next (webviewer-core.min.js:64:490)
    at a (webviewer-core.min.js:64:261)

Please provide a link to a minimal sample where the issue is reproducible:

You guys can try any file it’s throwing same error.

Thanks & regards,
Dgosai

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems like you’re encountering an issue with WebViewer 11.2.0 when trying to open files offline using the PartRetriever. The error message suggests that there’s a problem with the getFile function, which indicates that the PartRetriever might not be correctly set up or the function is not being recognized in offline mode.

Some things you can try:

  • Ensure that the PartRetriever is properly implemented according to the latest guidelines for WebViewer 11.2.0. There may have been changes or updates that need to be accounted for.

  • Check that all necessary scripts are being loaded correctly. Sometimes, missing or improperly loaded scripts can cause such issues.

  • Verify that the offline functionality is correctly configured in your application, as offline support might require specific setup.

  • Consider testing with a different setup or environment to isolate whether the issue is specific to your current configuration.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Is there any sample docs/links where I can check Core.PartRetrievers new implementations. Please share so I can refer the same. I didn’t find any doc for this offline support with Core.PartRetrievers method.

Thanks

1 Like

Hello Dhanesh,

Thank you for contacting us.

Could you provide the specific code used to reproduce this error along with steps?

Have you had a chance to look at our offline sample? webviewer-samples/webviewer-offline at main · ApryseSDK/webviewer-samples · GitHub

PartRetrievers shouldn’t be necessary to open offline files and we don’t recommend using them if not needed.

Our offline sample uses a library called localforage which creates blobs that you can reopen in WebViewer.

Best Regards,
Darian

1 Like