Requested uri () is out of base uri (/remote.php/dav/)

Error log:

Sabre\DAV\Exception\Forbidden: Requested uri () is out of base uri (/remote.php/dav/)

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 549:

Sabre\DAV\Server->calculateUri("")

/var/www/nextcloud/apps/dav/lib/Server.php - line 323:

Sabre\DAV\Server->getRequestUri()

/var/www/nextcloud/apps/dav/lib/Server.php - line 149:

OCA\DAV\Server->requestIsForSubtree([ "calendars ... "])

/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 34:

OCA\DAV\Server->__construct(OC\AppFramework\Http\Request {}, "/remote.php/dav/")

/var/www/nextcloud/remote.php - line 163:

require_once("/var/www/ne ... p")

Ideas? )

Some error event some time to time raise:

LogicException:

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1296:

Sabre\HTTP\Request->getPath()

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:

Sabre\DAV\Server->checkPreconditions(Sabre\HTTP\R ... l}, Sabre\HTTP\Response {})

/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:

Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... l}, Sabre\HTTP\Response {})

/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80:

Sabre\DAV\Server->exec()

/var/www/nextcloud/remote.php - line 163:

require_once("/var/www/ne ... p")

Have you resolved this issue? I’m having the same problem now.

What is your overwritewebroot set to in your NC config.php?

You gave me the right idea! It was '/' setting it to '' solved the issue. I remember changing it a couple of years ago to solve another problem. Thank you!