Office Online Server not working - Custom WOPI

FABIO Lima Vicente dos Santos 0 Reputation points
2023-09-26T17:52:28.3933333+00:00

I trying to use Office Online Server to implement a web browser embed word editor solution, on premises, in a custom web application. So, in this case, I'm not using SharePoint, Exchange or something else similar.

I've asked to infra staff on my company to install Office Online Server (Wopi Client) on a clean server machine, and it seems to be working ok - it is retriving me discovery xml on http://servername/hosting/discovery.

I've used this - https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online/, and this example repo - https://github.com/OfficeDev/PnP-WOPI, to implement a basic WOPI Server, very simple, which was intended only to make something be saw on the screen, but it didn't work.

I've found a Node.js Wopi Server implementation (https://github.com/mikeebowen/node-wopi-server), which sounds exactly which I need, but when I run it, with .env file correctly filled, it returns me that image below (the same returned on Wopi Server developed by myself):

User's image

This is a response to a post to http://officeonlineserver/wv/wordviewerframe.aspx?WOPISrc=http%3A%2F%2F172.16.96.143%3A3003%2Fwopi%2Ffiles%2F95701492081637170&access_token=foDzkPGQvfkYIcx|Fabio&access_token_ttl=0

The most strange of all, is that wopi is not reaching my Wopi Server. It's crashing before it. I've inserted breakpoints on my server endpoints and logs to console in order to verifying server activity and it have not been called.

I've asked for a person in the infra staff to ping my IP, which is being used to serve Wopi Host, and it answered. Unfortunelly, I don't have access to where Office Online Server is being hosted and I can't access any log.

Someone can help me with this issue? I suspect that it can be a Office Online Server problem...

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.