无法在线查看 文件 api显示403 返回错误

WebViewer Version:

Do you have an issue with a specific file(s)?

在线预览文件 返回403错误
Can you reproduce using one of our samples or online demos?
Are you using the WebViewer server?

我安装了 webviewer 2.4.2
Does the issue only happen on certain browsers?

安装后就无法在线预览,但是转pdf是成功的
26-01-30/11:45:53.041/CST [pool-7-thread-2] INFO DocManagement - Kicking off potential fetch of https://augazap09.group.auo.com/ViewFile_WEB/ViewFile/GetFile?token=ZX0TXkykM1R!7F30CEMrBXIZ7!ezDDFSN06M6VTMjoGguREn09lzHJBYjPp7aYzxUyFEzQA2A0Qnvwn_WsQdlf6yGys8EA6!RGwVDBv4mO7d8QOGB91cIXVsmQCuSNw8f0IOOJi_cQWtfu1wsd1MadP0jcsEWBktiD0v8taKPw1i!BpKiSTJz4Sf2NNx3vgo1AKFZbQz3JBp!_!oMqhoPzRkPGWffBEWaiMIl!lALhp6ZLXQ8Nj2xWOf6h0CN9KbYJzgTJAldXXnB_RNMkBmlGUoRHtlVNXJB7Ncf6MMX11G3Qx3Ou4RSMl7196EscFx0OJNFy7enXvH4TSZe5fgUg==
2026-01-30/11:45:53.063/CST [pool-7-thread-2] ERROR DocManagement - Fetch finished with errors:
java.lang.Exception: HTTP failure: 403, Forbidden
at core.shared.DocManagement$DocFetchTask.getSingleFileImpl(DocManagement.java:380)
at core.shared.DocManagement$DocFetchTask.doFetch(DocManagement.java:462)
at core.shared.DocManagement$DocFetchTask.run(DocManagement.java:194)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: Bad response code.
at core.shared.DocManagement$DocFetchTask.getSingleFileImpl(DocManagement.java:340)

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.


The error you’re encountering, a 403 Forbidden, typically means that the server is refusing to fulfill the request. This could be due to a permissions issue, incorrect URL, or the server blocking the request for some reason.

Some things you can try:

  • Ensure that the URL you are trying to access is correct and that you have the necessary permissions to view the file.

  • Check if the issue is related to authentication or authorization. You might need to include authentication headers or tokens in your request.

  • Verify that the WebViewer server is set up correctly and that it has access to the resources it needs.

  • Try accessing the file with different network settings or a different network to see if the problem persists.

  • Examine your server logs for any additional error messages that might provide more context.



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.

Hello Alex,

Thank you for contacting WebViewer Forums.

From the error provided, it seems that the file was unable to fetch successfully. To investigate further, please provide the following context regarding your environment:

  1. Full WebViewer Server logs, from just before the start of loading to the end of it loading ( Retrieving Information about your Container | Apryse documentation )
  2. WebViewer Server configurations
  3. Does this issue occur in an older version of WebViewer Server? If so, which version?
  4. Steps to reproduce the issue - are you converting a filetype then loading this converted file?
  5. WebViewer relevant code if there is a specific process in your workflow.
  6. Sample document that reproduces the issue.

We look forward to hearing back from you!

Regards,
Luke