Issue OCP\Files\NotFoundException

Hi,

I am noticing this errors under the logging. I am not sure why it’s happening. Can anyone help me to fix it. I am using Ubuntu 16.04.6 LTS & NextCloud 18.0.4 with Apache2. Attached the sample log here.

{
“reqId”:“GE71SRp6npUiI4tlZDc9”,
“level”:3,
“time”:“2020-07-30T22:44:58+00:00”,
“remoteAddr”:“117.247.207.222”,
“user”:“Shiva”,
“app”:“text”,
“method”:“POST”,
“url”:"/index.php/apps/text/session/sync",
“message”:{
“Exception”:“OCP\Files\NotFoundException”,
“Message”:"",
“Code”:0,
“Trace”:[
{
“file”:"/opt/nextcloud/apps/text/lib/Service/DocumentService.php",
“line”:363,
“function”:“getFileById”,
“class”:“OCA\Text\Service\DocumentService”,
“type”:"->",
“args”:[
2865,
“Shiva”
]
},
{
“file”:"/opt/nextcloud/apps/text/lib/Service/ApiService.php",
“line”:160,
“function”:“getFileForSession”,
“class”:“OCA\Text\Service\DocumentService”,
“type”:"->",
“args”:[
{
“id”:253,
class”:“OCA\Text\Db\Session”
},
null
]
},
{
“file”:"/opt/nextcloud/apps/text/lib/Controller/SessionController.php",
“line”:81,
“function”:“sync”,
“class”:“OCA\Text\Service\ApiService”,
“type”:"->",
“args”:[
2865,
253,
“bv7tz+VhLNmDRSM3VThkViIkc1HomeBcvLRQ1cLVphlUSAX4scHrZpUygKVXForN”,
0,
“”,
false,
true
]
},
{
“file”:"/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
“line”:170,
“function”:“sync”,
“class”:“OCA\Text\Controller\SessionController”,
“type”:"->",
“args”:[
2865,
253,
“bv7tz+VhLNmDRSM3VThkViIkc1HomeBcvLRQ1cLVphlUSAX4scHrZpUygKVXForN”,
0,
“”,
false,
true
]
},
{
“file”:"/opt/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
“line”:99,
“function”:“executeController”,
“class”:“OC\AppFramework\Http\Dispatcher”,
“type”:"->",
“args”:[
{
class”:“OCA\Text\Controller\SessionController”
},
“sync”
]
},
{
“file”:"/opt/nextcloud/lib/private/AppFramework/App.php",
“line”:125,
“function”:“dispatch”,
“class”:“OC\AppFramework\Http\Dispatcher”,
“type”:"->",
“args”:[
{
class”:“OCA\Text\Controller\SessionController”
},
“sync”
]
},
{
“file”:"/opt/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
“line”:47,
“function”:“main”,
“class”:“OC\AppFramework\App”,
“type”:"::",
“args”:[
“OCA\Text\Controller\SessionController”,
“sync”,
{
class”:“OC\AppFramework\DependencyInjection\DIContainer”
},
{
“_route”:“text.Session.sync”
}
]
},
{
“function”:"__invoke",
“class”:“OC\AppFramework\Routing\RouteActionHandler”,
“type”:"->",
“args”:[
{
“_route”:“text.Session.sync”
}
]
},
{
“file”:"/opt/nextcloud/lib/private/Route/Router.php",
“line”:299,
“function”:“call_user_func”,
“args”:[
{
class”:“OC\AppFramework\Routing\RouteActionHandler”
},
{
“_route”:“text.Session.sync”
}
]
},
{
“file”:"/opt/nextcloud/lib/base.php",
“line”:1008,
“function”:“match”,
“class”:“OC\Route\Router”,
“type”:"->",
“args”:[
“/apps/text/session/sync”
]
},
{
“file”:"/opt/nextcloud/index.php",
“line”:38,
“function”:“handleRequest”,
“class”:“OC”,
“type”:"::",
“args”:[

        ]
     }
  ],
  "File":"/opt/nextcloud/apps/text/lib/Service/DocumentService.php",
  "Line":394,
  "CustomMessage":"--"

},
“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36”,
“version”:“18.0.4.2”,
“id”:“5f235cdf54614”
}