No active session(s) found matching LogoutRequest - SAML - Node - SAML2-JS

I am using Auth0 Single Page Application with SAML add on as IDP. I use npm package saml2-js in my node code. Login and assertion works ok but unfortunately when I try to execute the method create_logout_request_url by passing session_index and name_id same as the ones in the SAMLResponse failing and getting the error saying “No active session(s) found matching LogoutRequest”