-
Notifications
You must be signed in to change notification settings - Fork 14
1015644: Add Troubleshooting page for document fails to load with 404 error #2439
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
Open
Sujitha2610
wants to merge
8
commits into
development
Choose a base branch
from
1015644-DocEditor-troubleshooting
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8f7d1fb
1015644: Updated troubleshooting page
Sujitha2610 10eef33
1015644: Resolved CI failure and updated toc
Sujitha2610 e81f5e8
Merge branch 'development' of https://github.com/syncfusion-content/d…
Sujitha2610 a9b1c90
Merge branch 'development' into 1015644-DocEditor-troubleshooting
Sujitha2610 840ddfe
1015644: Resolve CI Failure
Sujitha2610 42b45d9
Merge branch 'development' of https://github.com/syncfusion-content/d…
Sujitha2610 5fbacdb
1015644: Updated review changes
Sujitha2610 facab92
Merge branch 'development' into 1015644-DocEditor-troubleshooting
Sujitha2610 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ocessor/javascript-es5/troubleshooting/document-loading-issue-with-404-error.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| layout: post | ||
| title: Document loading issue in JavaScript(ES5) DOCX editor | Syncfusion | ||
| description: Document loading may fail with a 404 error if the Document Editor cannot reach a valid service URL, which may be due to the below reasons. | ||
| control: document loading issue with 404 error | ||
| platform: document-processing | ||
| documentation: ug | ||
| domainurl: ##DomainURL## | ||
| --- | ||
|
|
||
| # Document loading issue with 404 error in JavaScript(ES5) DOCX editor | ||
|
|
||
| If document loading fails and you see a 404 error in the browser console, the Document Editor is unable to reach a valid Web Service endpoint. | ||
|
|
||
| ## Reasons | ||
|
|
||
| The 404 error may occur due to the following reasons: | ||
|
|
||
| - **The Web Service is not running or inactive** – When hosting your own ASP.NET Core Web API, the server may be stopped or not deployed correctly, causing required endpoints such as `/Import` or `/SpellCheck` to return 404. | ||
| - **The configured `serviceUrl` is invalid** – Issues like a missing trailing slash (`/`), wrong port number, incorrect API route, or typos will cause the editor to call incorrect endpoints. | ||
| - **The application is using an old or discontinued Document Editor service URL** – When using an old Document Editor service URL which no longer valid (`https://ej2services.syncfusion.com/production/web-services/api/documenteditor/`). | ||
|
|
||
| ## Solution | ||
|
|
||
| 1. Update the application to use the new hosted Document Editor Web Service URL introduced in v31.x.x. For example: | ||
|
|
||
| ```javascript | ||
| container.serviceUrl = 'https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/'; | ||
| ``` | ||
|
|
||
| 2. If you are using your own hosted Web API, ensure that the Web Service is running, active, and the configured service URL is valid. | ||
|
|
||
| > Note: The hosted Web API link is provided for demonstration and evaluation only. For production use, host your own web service with the required server configuration. See the GitHub Web Service example or use the Docker image for deployment guidance. | ||
|
|
||
| --- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...d/Word-Processor/react/troubleshooting/document-loading-issue-with-404-error.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| layout: post | ||
| title: Document loading issue in React DOCX editor component | Syncfusion | ||
| description: Document loading may fail with a 404 error if the Document Editor cannot reach a valid service URL, which may be due to the below reasons. | ||
| control: document loading issue with 404 error | ||
| platform: document-processing | ||
| documentation: ug | ||
| domainurl: ##DomainURL## | ||
| --- | ||
|
|
||
| # Document loading issue with 404 error in React DOCX editor component | ||
|
|
||
| If document loading fails and you see a 404 error in the browser console, the Document Editor is unable to reach a valid Web Service endpoint. | ||
|
|
||
| ## Reasons | ||
|
|
||
| The 404 error may occur due to the following reasons: | ||
|
|
||
| - **The Web Service is not running or inactive** – When hosting your own ASP.NET Core Web API, the server may be stopped or not deployed correctly, causing required endpoints such as `/Import` or `/SpellCheck` to return 404. | ||
| - **The configured `serviceUrl` is invalid** – Issues like a missing trailing slash (`/`), wrong port number, incorrect API route, or typos will cause the editor to call incorrect endpoints. | ||
| - **The application is using an old or discontinued Document Editor service URL** – When using an old Document Editor service URL which no longer valid (`https://ej2services.syncfusion.com/production/web-services/api/documenteditor/`). | ||
|
|
||
| ## Solution | ||
|
|
||
| 1. Update the application to use the new hosted Document Editor Web Service URL introduced in v31.x.x. For example: | ||
|
|
||
| ```javascript | ||
| container.serviceUrl = 'https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/'; | ||
| ``` | ||
|
|
||
| 2. If you are using your own hosted Web API, ensure that the Web Service is running, active, and the configured service URL is valid. | ||
|
|
||
| > Note: The hosted Web API link is provided for demonstration and evaluation only. For production use, host your own web service with the required server configuration. See the GitHub Web Service example or use the Docker image for deployment guidance. | ||
|
|
||
| --- |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soltuions: