We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Error when using GroupDocs Viewer API

Dear vladimir,

I still facing the same issue after adding the route prefix.loadconfig error 3.PNG (56.9 KB)
code prefix route.PNG (13.5 KB)

Yes, I am building the Editor app in the same project.

Regards,
WK

@WeiKiatChua

Please attach the sample app you have at the moment.

Dear vladimir,

Please see attached.
I remove the content in the node_modules and packages to reduce the size of the attachment.
Besides that, the editor angular file is located at client/edit/… while the client/…is referring to viewer angular file.

Regards,
WK

@WeiKiatChua

Thank you for attaching your project file. We’ll take a look and update you.

@WeiKiatChua

The issue happens because API endpoint is set to config.apiEndpoint = "http://localhost:44324"; in app.module.ts of Editor App when the API is available over HTTPS, so to fix the issue update http://localhost:44324 to https://localhost:44324 and rebuild Angular app.

Dear vladimir,

I change the http to https and rebuild the angular by using npm run build – --prod --output-path .\dist
and copy the output to resources/editor but the error still exists.

Regards,
WK

@WeiKiatChua

May you please share the distribution files that you’ve got after rebuilding the app?

Dear Vladimir,

Attached herewith the distribution files.
dist.zip (901.4 KB)

Regards,
WK

@WeiKiatChua

Thank you for attaching the dist files. Unfortunately I can’t reproduce the issue locally see editor-page-with-attached-scripts.png (61.2 KB).

Please also find the app that I’m running sample_app.zip (2.5 MB).

Hope it helps.

Dear vladimir,

By using your sample app, the editor able to run in my PC.
However, when I try to upload / open a file from my PC, it takes forever to load.
Can you try it at your end?
image.png (14.2 KB)

Besides that, if I create a new file , I am not able to write anything until I save it.

Regards,
WK

Please see the video recording.


@WeiKiatChua

The same issue at my end.

Please contact my colleagues at the Editor Product Family Category for the issues related to GroupDocs.Editor.

Hi Vladimir,

OK, I shall contact them.
Thanks for your help.

Regards,
WK

@WeiKiatChua

You’re welcome!