Xmpp.js: SyntaxError: Unexpected end of JSON input


I just use Self-Hosting Guide - Debian/Ubuntu server and then tried using this guide from source.

I am making some changes to jitsi-meet local repository and using command:

npm install lib-jitsi-meet --force && make

It works and I can see the changes.

When I’m alone in a room, everything is fine.

But when someone joins my room, there is always an error message:

[modules/xmpp/xmpp.js] <I.tryParseJSONAndVerify>:  SyntaxError: Unexpected end of JSON input
        at JSON.parse (<anonymous>)
        at I.tryParseJSONAndVerify (xmpp.js:746)
        at I._onPrivateMessage (xmpp.js:791)
        at I.Handler.run (strophe.umd.js:1875)
        at strophe.umd.js:3157
        at Object.forEachChild (strophe.umd.js:830)
        at I.Connection._dataRecv (strophe.umd.js:3146)
        at D.Bosh._onRequestStateChange (strophe.umd.js:5012)

And everyone in this room has different errors like: camera problem, sound problem, etc.
I have a problem with the camera: no access to the camera immediately when someone joins.

It actually works the same if I just install jitsi-meet and use external_api and config from /usr/share/jitsi-meet and my nginx config root is /usr/share/jitsi-meet

I found many such problems on the internet, but none of the solutions worked for me.

My jitsi-meet version: 2.0.5390-3

I actually tried setting up jitsi about a week before I create a topic here. I am using 3 different servers (including aws). I have tried different open-source web clients. And ALWAYS the result is the same!