Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Running Dev server has trial expired #1078

Open
arcuo opened this issue Oct 17, 2024 · 1 comment
Open

[Bug] Running Dev server has trial expired #1078

arcuo opened this issue Oct 17, 2024 · 1 comment

Comments

@arcuo
Copy link

arcuo commented Oct 17, 2024

WebViewer version
10.12

The current behavior
Running the dev server for webviewer-ui shows Error modal for trial run expired

webviewer-core.min.js:1017 Uncaught (in promise) Error: Thank you for evaluating WebViewer! Your 7-day trial has expired.

To extend the trial, please sign-up to get a key from https://dev.apryse.com/. If you still see this error message after passing a trial key, try clearing your browser cache.
    at qa (webviewer-core.min.js:1017:372)
    at webviewer-core.min.js:1028:460
    at n (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 ja (webviewer-core.min.js:64:203)
    at Object.Sna (webviewer-core.min.js:1027:529)
    at webviewer-core.min.js:762:203
    at n (webviewer-core.min.js:66:130)

The expected behavior
To be able to run the dev server or supply docs in the readme on how to add API key. Currently, we are developing on a fork.

Steps to reproduce
Running clean from 10.12

npm install --legacy-peer-deps
npm download-webviewer
npm start
@arcuo arcuo changed the title [Bug] Running Dev server on version 10.12 has trial expired [Bug] Running Dev server has trial expired Oct 17, 2024
@bollain
Copy link
Collaborator

bollain commented Oct 22, 2024

hey @arcuo,

Thanks for reaching out.

So generally the flow for working with this repo if you choose to fork it, is to build the UI from here and then use that in your project that has the WebViewer Core files. That way you can instantiate WebViewer using the constructor, which takes a licenseKey parameter. (some users use symlinks as well)

However, I can understand that being cumbersome.

What I can suggest is to tweak this in your fork.

In this object with the default parameters, add a licenseKey option.

licenseKey: 'Put the key here',

You can get a key from https://dev.apryse.com/

This way while you are doing dev work you can avoid the error message - just remember to remove this once you build the UI and copy it over to your project.

Let me know if this works out for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants