Xbox One app keeps on showing unexpected error when attempting to access server

Hi,

I have been been having a lot of problems recently with my media not be discovered in Plex. I finally got sick of it and completely uninstalled Plex and deleted the library and started from Scratch. I now have all my media being discovered but I am unable to access the server using the Xbox One App. When ever I start the app I just get an “Unexpected error” message. I have reinstalled the app, signed in and out, restarted the Plex Server but still unable to access it. I also have an Apple TV with the Plex app installed and it seems to be working ok, just not the Xbox. When I restalled the Plex app on the NAS I downloaded the latest version as well, so everything should be up to date. I have attached my Plex Server .

Any help would be appreciated.

Thanks,
Chris

I have now fixed the issue by optimising the library database via the sever web interface.