Error When Start Recroding

I am trying to get the recording to start using the low level jitsi API. I know the recording/Jibri works because when I use the standard Jitsi setup, everything work. My code is as follows:

 room = connection.initJitsiConference(getRoomName(), options.conference);

            let shouldShare = true;

            let record = room.startRecording({
                mode: JitsiRecordingConstants.mode.FILE,
                appData: JSON.stringify({
                    'file_recording_metadata': {
                        'share': shouldShare
                    }
                })
            });

            record.then(function(res) { 
                console.log("Success Recording");
                console.log(res) })
            .catch(function(err) { 
                console.log("Error Recording");
                console.log(err) 
            })

The error I get in my console is this:

<iq xmlns="jabber:client" to="9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn" from="focus.meet.bingewave.com" type="error" id="3e8b18a5-7313-4956-9e04-78c72e32a599:sendIQ"><error type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">invalid session</text><session-invalid xmlns="http://jitsi.org/protocol/focus"/></error></iq>

And my Jifico Logs are throwing nothing:

Jicofo 2021-08-13 16:03:40.337 INFO: [248] ConferenceIqHandler.handleConferenceIq#56: Focus request for room: 53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com

Jicofo 2021-08-13 16:03:40.337 INFO: [248] AbstractAuthAuthority.createNewSession#158: Authentication session created for 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com SID: b60a2971-5106-454f-8d37-77da6c3979a2

Jicofo 2021-08-13 16:03:40.337 INFO: [248] AbstractAuthAuthority.authenticateJidWithSession#431: Authenticated jid: 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn with session: AuthSession[ID=9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com, JID=9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn, SID=b60a2971-5106-454f-8d37-77da6c3979a2, MUID=211096025891c8e8ce5e6f6fc7cffea2, LIFE_TM_SEC=0, R=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com]@1085414450

Jicofo 2021-08-13 16:03:40.337 INFO: [248] AbstractAuthAuthority.notifyUserAuthenticated#339: Jid 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn authenticated as: 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com

Jicofo 2021-08-13 16:03:40.337 INFO: [248] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com] JitsiMeetConferenceImpl.<init>#251: Created new conference, roomJid=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com

Jicofo 2021-08-13 16:03:40.337 INFO: [248] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com] JitsiMeetConferenceImpl.joinTheRoom#433: Joining 53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com

Jicofo 2021-08-13 16:03:40.386 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.memberPresenceChanged#130: Chat room event Joined member=ChatMember[53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com/9a1bedbf, jid: null]@438697278

Jicofo 2021-08-13 16:03:40.386 WARNING: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.electNewOwner#177: Focus role unknown

Jicofo 2021-08-13 16:03:40.386 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.electNewOwner#181: Obtained focus role: OWNER

Jicofo 2021-08-13 16:03:40.387 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] JitsiMeetConferenceImpl.onMemberJoined#547: Member joined:9a1bedbf

Jicofo 2021-08-13 16:03:40.388 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.memberPresenceChanged#130: Chat room event PresenceUpdated member=ChatMember[53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com/9a1bedbf, jid: 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn]@438697278

Jicofo 2021-08-13 16:03:40.388 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.memberPresenceChanged#130: Chat room event PresenceUpdated member=ChatMember[53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com/9a1bedbf, jid: 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn]@438697278

Jicofo 2021-08-13 16:03:41.313 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.memberPresenceChanged#130: Chat room event PresenceUpdated member=ChatMember[53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com/9a1bedbf, jid: 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn]@438697278

Jicofo 2021-08-13 16:03:41.313 INFO: [26] [room=53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com meeting_id=5b44f97a-44d6-4b00-a34d-32d24f9ab33a] ChatRoomRoleAndPresence.memberPresenceChanged#130: Chat room event PresenceUpdated member=ChatMember[53209f29-53fc-4971-add9-534405e7dd42@conference.meet.example.com/9a1bedbf, jid: 9a1bedbf-f255-4b39-ad11-8e7e6a99439b@meet.example.com/qT2a6Kmn]@438697278

How should I go about debugging this?

Hello @BingeWave ,

Have you tried the solution that i have provided in different thread ? is it working for you ?

@Kedar_Thakkar1 A server restart fixed the error for me.