Nc 18.0.4 - "Error deleting the share" (external share to another nc instance)

Nextcloud version (eg, 18.0.4):
I am using docker container - 18.0.4-apache

The issue you are facing:
I want to delete a share to an other nextcloud instance but nextcloud is only showing that it has an error. “Error deleting the share”
I tryed to delete the share with the user who is owner of the share and with the admin account.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:
don’t know how jet…
1.
2.
3.

The output of your Nextcloud log in Admin > Logging:

[no app in context] Error: OC\HintException: Invalid Federated Cloud ID at <<closure>>

 0. /var/www/html/apps/federatedfilesharing/lib/FederatedShareProvider.php line 576
    OCA\FederatedFileSharing\AddressHandler->splitUserRemote("User")
 1. /var/www/html/apps/federatedfilesharing/lib/FederatedShareProvider.php line 546
    OCA\FederatedFileSharing\FederatedShareProvider->revokeShare(OC\Share20\Share {}, true)
 2. /var/www/html/lib/private/Share20/Manager.php line 1139
    OCA\FederatedFileSharing\FederatedShareProvider->delete(OC\Share20\Share {})
 3. /var/www/html/apps/files_sharing/lib/Controller/ShareAPIController.php line 369
    OC\Share20\Manager->deleteShare(OC\Share20\Share {})
 4. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Files_Sharing\Controller\ShareAPIController->deleteShare("149")
 5. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Sharin ... {}, "deleteShare")
 6. /var/www/html/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sharin ... {}, "deleteShare")
 7. /var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Files_Shar ... r", "deleteShare", OC\AppFramework\ ... {}, {id: "149",_rout ... "})
 8. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "149",_rout ... "})
 9. /var/www/html/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {id: "149",_rout ... "})
10. /var/www/html/ocs/v1.php line 82
    OC\Route\Router->match("/ocsapp/apps/fi ... 9")
11. /var/www/html/ocs/v2.php line 24
    require_once("/var/www/html/ocs/v1.php")

DELETE /ocs/v2.php/apps/files_sharing/api/v1/shares/149
from 84.xxx.xxx.xxx by User at 2020-05-06T13:58:04+02:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'passwort',
  'secret' => 'passwort',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'domain.de',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '18.0.4.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => '',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'passwort',
  'installed' => true,
  'instanceid' => 'instanceid',
  'force_language' => 'de',
  'trashbin_retention_obligation' => 'auto',
  'logtimezone' => 'Europe/Berlin',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'updater.secret' => 'passwort.',
);

The output of your Apache/nginx/system log in /var/log/____:

docker_instance.1.xyz@servername    | 10.1.0.11 - - [06/May/2020:12:21:11 +0000] "DELETE /ocs/v2.php/apps/files_sharing/api/v1/shares/149 HTTP/1.1" 404 1142 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"