[WOPI] WopiBadRequestException: required URL paramters are not present

Touchsky2022 1 Reputation point
2022-08-18T16:12:58.603+00:00

I am trying to view or edit word file in browser by Office Online Server 2017(Windows Server 2012) + WOPI host, there is a error response. anyone know how to resolve it.

URL for edit word file : http://oos.xxxxx.com/we/wordeditorframe.aspx?WOPISrc=http://wopi.xxxxx.com:3002/files/wopi/test.docx/contents?access_token=123&access_token=123
URL for view word file : http://oos.xxxxx.com/wv/wordviewerframe.aspx?WOPISrc=http://wopi.xxxxx.com:3002/files/wopi/test.docx/contents?access_token=123&access_token=123
with following Error response:
232540-error.png

But I can view file normally with following url.
URL for view word file:
http://oos.xxxxx.com/op/view.aspx?src=http://wopi.xxxxx.com:3002/files/wopi/test.docx/contents?access_token=123

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
578 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Touchsky2022 1 Reputation point
    2022-08-20T03:41:27.387+00:00

    log information:

    ajba4 Medium WAC Server HttpModule: Beginning request at target [/we/wordeditorframe.aspx?ui=zh-CN&rs=zh-CN&WOPISrc==http://gsyf.xxxxx.com:28088/web-app-wopi/320481/202201/default/default/default/default//4-%E5%9B%9E%E8%AE%BF-20-%E5%9B%9E%E8%AE%BF%E6%8A%A5%E5%91%8A%E7%AD%BE%E6%94%B6%E5%8D%95.docx/contents?access_token=REDACTED_3&access_token=REDACTED_3&access_token_ttl=0] in session [159c0425-9a45-4adf-8d96-0d001ab57c4d] server build [16.0.7430.2228] client build [0.0.0.0] 159c0425-9a45-4adf-8d96-0d001ab57c4d
    xmnv Medium UserSessionId=159c0425-9a45-4adf-8d96-0d001ab57c4d 159c0425-9a45-4adf-8d96-0d001ab57c4d
    agq6x Exception WAC Server FrontEnd unhandled exception [0] Microsoft.Office.Web.Common.EnvironmentAdapters.FileUnknownException: required URL paramters are not present 在 Microsoft.Office.Web.Apps.Common.WopiDocument.CreateFromQuerySignature(String querySignature) 在 Microsoft.Office.Web.Apps.Environment.WacServer.WSMainStorage.GetBaseDocumentFromContext(HttpContext context, String rawHostDocumentId) 在 Microsoft.Office.Web.Host.WacServer.WebOneNote.WoncaFrame.OnPreRender(EventArgs e) 在 Microsoft.Office.Web.Host.WacServer.WebOneNote.WordEditorFrame.OnPreRender(EventArgs e) 在 System.Web.UI.Control.PreRenderRecursiveInternal() 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) StackTrace: at uls.native.dll: (sig=f2145ad... 159c0425-9a45-4adf-8d96-0d001ab57c4d
    agq6x Exception ...a-bc0c-4d2f-b623-f60ff78fd769|2|uls.native.pdb, offset=35615) at uls.native.dll: (offset=2922E) 159c0425-9a45-4adf-8d96-0d001ab57c4d
    c91s Monitorable Watson bucket parameters: Uninitialized ULS, ULSException14, a354bb5e "office online", 10001854 "16.0.6228.0", 917d7e24 "microsoft.office.web.apps.common", 10001d06 "16.0.7430.0", 57ef026e "sat oct 1 08:25:18 2016", 0000045f "0000045f", 00000016 "00000016", e726a303 "fileunknownexception", 00190817 "agq6x" 159c0425-9a45-4adf-8d96-0d001ab57c4d
    b6ig Medium Data collection is not enabled for tag 'agq6x' in the configuration or configuration file not available. Not reporting to Watson 159c0425-9a45-4adf-8d96-0d001ab57c4d
    af46w Medium WACServer HttpModule: Completed request with status code [302] 159c0425-9a45-4adf-8d96-0d001ab57c4d

    0 comments No comments