Logout not working with SimpleSAMLphp Multiple SP

I have an issue with Nextcloud SAML SSO. I configured SAML SSO with SimpleSAMLphp. I’m using Nextcloud 16. This is my SAML SSO informations:

attribute mapped to : uid
Idp: https://simplesaml.domain.net/simplesaml/saml2/idp/metadata.php
Login url : https://simplesaml.domain.net/simplesaml/saml2/idp/SSOService.php
Logout url: https://simplesaml.domain.net/simplesaml/saml2/idp/SingleLogoutService.php

SimpleSAMLphp side:

// Service Provider for Nextcloud

$metadata[‘https://nextcloud.domain.net/index.php/apps/user_saml/saml/metadata’] = array (
‘SingleLogoutService’ => ‘https://nextcloud.domain.net/index.php/apps/user_saml/saml/sls’
‘AssertionConsumerService’ => ‘https://nextcloud.domain.net/index.php/apps/user_saml/saml/acs’
‘certificate’ => ‘nextcloud.pem’
),

No problems when I test SSO SAML with Nextcloud. Login and logout are working well.
Now i have added a second service Provider: Rocketchat.

This is rocketchat informations:

//Service Provider Rocketchat:
$metadata[‘https://rocketchat.domain.net/_saml/metadata/rocketchat-sp’] = array (
‘SingleLogoutService’ => ‘https://rocketchat.domain.net/_saml/logout/rocketchat-sp’
‘AssertionConsumerService’ => ‘https://rocketchat.domain.net/_saml/validate/rocketchat-sp’
‘certificate’ => ‘rocketchat.pem’
),

Now the login and logout with Rocketchat are working well. But with Nextcloud, the login is working but not the log out. When I log out with Nextcloud, I have this error in SimpleSAMLphp:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION

Backtrace:
1 www/_include.php:17 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: Exception: Missing status code on response.
Backtrace:
5 vendor/simplesamlphp/saml2/src/SAML2/StatusResponse.php:72 (SAML2\StatusResponse::__construct)
4 vendor/simplesamlphp/saml2/src/SAML2/LogoutResponse.php:19 (SAML2\LogoutResponse::__construct)
3 vendor/simplesamlphp/saml2/src/SAML2/Message.php:594 (SAML2\Message::fromXML)
2 vendor/simplesamlphp/saml2/src/SAML2/HTTPRedirect.php:129 (SAML2\HTTPRedirect::receive)
1 modules/saml/lib/IdP/SAML2.php:605 (SimpleSAML\Module\saml\IdP\SAML2::receiveLogoutMessage)
0 www/saml2/idp/SingleLogoutService.php:23 (N/A)