Xmpp.js "SyntaxError: Unexpected end of JSON input"

I wonder if anyone has come across a similar problem to this, I am quite new to Jitsi and so maybe it’s a simple configuration error, but any help is greatly appreciated!

I am running a jitsi server via aws, based on this guide

things seem to be working - except that I have a persistent error popping up when the second user enters a room (sometimes the error appears in the first user’s console, sometimes in the second).

The error and immediate context are as follows:

SdpSimulcast: using 3 layers
Halt: There are no SSRC groups in the remote description.
SdpSimulcast: current ssrc cache:
SdpSimulcast: parsed primary ssrc 402704685
SdpSimulcast: Have not seen primary ssrc before, generating source data
Logger.js:154 2020-11-23T02:19:49.028Z [modules/xmpp/xmpp.js] <A.tryParseJSONAndVerify>: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at A.tryParseJSONAndVerify (xmpp.js:725)
at A._onPrivateMessage (xmpp.js:770)
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)
Imploding SIM group: 4040439424 3044779381 3974267411

When I direct the same client side code to beta.meet.jit.si, there is no such error, so I feel reasonably confident that my problem is in the server configuration, but beyond that, I’m at a bit of a loss.

Appreciate any clarity that folks can provide!

What versions if jitsi-meet do you use?

Hi damencho, thanks - in index.html I am linking to “https://meet.jit.si/libs/lib-jitsi-meet.min.js” and when I open a videobridge, I get the following version information in the logger:

2020-11-23T13:49:42.496Z [modules/version/ComponentsVersions.js] Got xmpp version: Prosody(0.10.0,Linux)
Logger.js:154 2020-11-23T13:49:42.497Z [modules/version/ComponentsVersions.js] Got focus version: JiCoFo(1.0.644,Linux)
Logger.js:154 2020-11-23T13:49:42.497Z [modules/version/ComponentsVersions.js] Got videobridge version: 2.1.376-g9f12bfe2

Just a quick update - I tried launching a new AWS instance at a different domain and visited the domain directly in two browsers. The result was a longer set of logs, but with the same “Unexpected end of JSON input” error (see below)

thanks for your help!

SdpSimulcast: current ssrc cache: Array(0)
index.js:415 SdpSimulcast: parsed primary ssrc 2616795336
index.js:424 SdpSimulcast: Have not seen primary ssrc before, generating source data
Logger.js:154 2020-11-23T15:53:55.183Z [modules/RTC/TraceablePeerConnection.js] <A._processLocalSSRCsMap>: Storing new local SSRC for LocalTrack[1,audio] in TPC[2,p2p:false] Object
Logger.js:154 2020-11-23T15:53:55.184Z [modules/RTC/TraceablePeerConnection.js] <A._processLocalSSRCsMap>: Storing new local SSRC for LocalTrack[2,video] in TPC[2,p2p:false] Object
Logger.js:154 2020-11-23T15:53:55.206Z [modules/xmpp/JingleSessionPC.js] <w.sendSessionAccept>: Sending session-accept <iq to=​"abc@conference.mmmurmur.org/​focus" type=​"set" xmlns=​"jabber:​client" id=​"044d4468-861e-4301-b19e-5b7541a0ca42:​sendIQ">​…​​
Logger.js:154 2020-11-23T15:53:55.208Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.209Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “2”
Logger.js:154 2020-11-23T15:53:55.209Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.210Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.210Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “3”
Logger.js:154 2020-11-23T15:53:55.210Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.211Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.211Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “4”
Logger.js:154 2020-11-23T15:53:55.211Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.211Z [modules/xmpp/JingleSessionPC.js] <A.peerconnection.oniceconnectionstatechange>: (TIME) ICE checking P2P? false: 6655.0850000057835
Logger.js:154 2020-11-23T15:53:55.213Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.213Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “1”
Logger.js:154 2020-11-23T15:53:55.213Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.229Z [modules/xmpp/JingleSessionPC.js] <w.sendIceCandidates>: sendIceCandidates Array(4)
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “2”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “3”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “4”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “ufrag” = “1x3/”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-id” = “1”
Logger.js:154 2020-11-23T15:53:55.231Z [modules/xmpp/SDPUtil.js] <Object.candidateToJingle>: not translating “network-cost” = “10”
Logger.js:154 2020-11-23T15:53:55.290Z [modules/xmpp/JingleSessionPC.js] <A.peerconnection.oniceconnectionstatechange>: (TIME) ICE connected P2P? false: 6733.754999993835
Logger.js:154 2020-11-23T15:53:55.291Z [modules/xmpp/JingleSessionPC.js] <w.sendIceCandidate>: sendIceCandidate: last candidate.
Logger.js:154 2020-11-23T15:53:55.462Z [modules/xmpp/ChatRoom.js] Jicofo supports restart by terminate: true
Logger.js:154 2020-11-23T15:53:55.477Z [modules/RTC/BridgeChannel.js] <WebSocket.e.onopen>: websocket channel opened
Logger.js:154 2020-11-23T15:53:55.477Z [JitsiConferenceEventManager.js] <a.>: (TIME) data.channel.opened: 6920.4850000096485
Logger.js:154 2020-11-23T15:53:55.477Z [modules/xmpp/JingleSessionPC.js] <w.setReceiverVideoConstraint>: JingleSessionPC[p2p=false,initiator=false,sid=992u3ej98g2de] setReceiverVideoConstraint - max frame height: 2160
Logger.js:154 2020-11-23T15:53:55.477Z [modules/RTC/BridgeChannel.js] <l.sendReceiverVideoConstraintMessage>: sending a ReceiverVideoConstraint message with a maxFrameHeight of 2160 pixels
Logger.js:154 2020-11-23T15:53:55.478Z [modules/xmpp/JingleSessionPC.js] <w.setReceiverVideoConstraint>: JingleSessionPC[p2p=true,initiator=false,sid=6e00b72c292f] setReceiverVideoConstraint - max frame height: 2160
Logger.js:154 2020-11-23T15:53:55.478Z [modules/xmpp/JingleSessionPC.js] <w.sendContentModify>: JingleSessionPC[p2p=true,initiator=false,sid=6e00b72c292f] sending content-modify, video senders: both, max frame height: 2160
Logger.js:154 2020-11-23T15:53:55.478Z [features/video-quality] : setReceiverVideoConstraint: 2160
Logger.js:154 2020-11-23T15:53:55.479Z [modules/RTC/BridgeChannel.js] <l.sendPinnedEndpointMessage>: sending pinned changed notification to the bridge for endpoint null
Logger.js:154 2020-11-23T15:53:55.479Z [modules/RTC/BridgeChannel.js] <l.sendSelectedEndpointsMessage>: sending selected changed notification to the bridge for endpoints Array(1)
Logger.js:154 2020-11-23T15:53:55.479Z [modules/RTC/BridgeChannel.js] <l.sendReceiverVideoConstraintMessage>: sending a ReceiverVideoConstraint message with a maxFrameHeight of 2160 pixels
Logger.js:154 2020-11-23T15:53:55.479Z [modules/RTC/BridgeChannel.js] <WebSocket.e.onmessage>: Channel new dominant speaker event: a3865391
Logger.js:154 2020-11-23T15:53:55.540Z [modules/RTC/BridgeChannel.js] <WebSocket.e.onmessage>: SenderVideoConstraints: {“idealHeight”:180,“preferredFps”:-1,“preferredHeight”:-1}
Logger.js:154 2020-11-23T15:53:55.540Z [modules/RTC/RTC.js] <w._senderVideoConstraintsChanged>: Received remote max frame height of [object Object] on the bridge channel
Logger.js:154 2020-11-23T15:53:55.626Z [modules/RTC/BridgeChannel.js] <WebSocket.e.onmessage>: Channel new last-n event: Array(1) Object
Logger.js:154 2020-11-23T15:53:55.634Z [JitsiConference.js] <re._suspendMediaTransferForJvbConnection>: Suspending media transfer over the JVB connection…
Logger.js:154 2020-11-23T15:53:55.635Z [modules/xmpp/JingleSessionPC.js] <w.setMediaTransferActive>: Queued make video inactive, audio inactive task…
Logger.js:154 2020-11-23T15:53:55.635Z [modules/xmpp/JingleSessionPC.js] <w.setReceiverVideoConstraint>: JingleSessionPC[p2p=false,initiator=false,sid=992u3ej98g2de] setReceiverVideoConstraint - max frame height: 2160
Logger.js:154 2020-11-23T15:53:55.635Z [modules/RTC/BridgeChannel.js] <l.sendReceiverVideoConstraintMessage>: sending a ReceiverVideoConstraint message with a maxFrameHeight of 2160 pixels
3Logger.js:154 2020-11-23T15:53:55.635Z [modules/RTC/TraceablePeerConnection.js] <A.setSenderVideoDegradationPreference>: Setting video sender degradation preference on TPC[2,p2p:false] to maintain-framerate
Logger.js:154 2020-11-23T15:53:55.636Z [modules/xmpp/strophe.jingle.js] <g.onJingle>: on jingle source-add from abc@conference./focus <iq xmlns=​"jabber:​client" type=​"set" to=​"a3865391-721e-4988-85a8-99c96644b86d@/​fa281bc1-d2de-46c4-8e82-f13399c24db4" from=​"abc@conference./​focus" id=​"YTM4NjUzOTEtNzIxZS00OTg4LTg1YTgtOTljOTY2NDRiODZkQG1tbXVybXVyLm9yZy9mYTI4MWJjMS1kMmRlLTQ2YzQtOGU4Mi1mMTMzOTljMjRkYjQATFRGaWMtMjE4NQCTE9AopWU+uxgDsqGL4D9A">​<jingle xmlns=​"urn:​xmpp:​jingle:​1" sid=​"992u3ej98g2de" action=​"source-add">​…​​​
Logger.js:154 2020-11-23T15:53:55.639Z [modules/xmpp/xmpp.js] <A.tryParseJSONAndVerify>: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at A.tryParseJSONAndVerify (xmpp.js:723)
at A._onPrivateMessage (xmpp.js:768)
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 O.Bosh._onRequestStateChange (strophe.umd.js:5012)
o @ Logger.js:154
Logger.js:154 2020-11-23T15:53:55.639Z [modules/xmpp/ChatRoom.js] Jicofo supports restart by terminate: true
index.js:146 Halt: There are no SSRC groups in the remote description.
Logger.js:154 2020-11-23T15:53:55.642Z [modules/RTC/BridgeChannel.js] <WebSocket.e.onmessage>: SenderVideoConstraints: {“idealHeight”:1080,“preferredFps”:30,“preferredHeight”:360}
Logger.js:154 2020-11-23T15:53:55.642Z [modules/RTC/RTC.js] <w._senderVideoConstraintsChanged>: Received remote max frame height of [object Object] on the bridge channel
Logger.js:154 2020-11-23T15:53:55.649Z [modules/xmpp/SdpConsistency.js] <o.makeVideoPrimarySsrcsConsistent>: TPC[2,p2p:false] sdp-consistency replacing new ssrc2616795336 with cached 2616795336
Logger.js:154 2020-11-23T15:53:55.660Z [modules/RTC/TraceablePeerConnection.js] <A._adjustLocalMediaDirection>: Adjusted local audio direction to inactive
Logger.js:154 2020-11-23T15:53:55.660Z [modules/RTC/TraceablePeerConnection.js] <A._adjustLocalMediaDirection>: Adjusted local video direction to inactive
Logger.js:154 2020-11-23T15:53:55.672Z [modules/xmpp/JingleSessionPC.js] Processing addRemoteStream
Logger.js:154 2020-11-23T15:53:55.672Z [modules/xmpp/JingleSessionPC.js] ICE connection state: connected
index.js:159 Imploding SIM group: 1944254249 3343792676 548557648
Logger.js:154 2020-11-23T15:53:55.676Z [JitsiConference.js] Suspended media transfer over the JVB connection !
Logger.js:154 2020-11-23T15:53:55.687Z [modules/RTC/TraceablePeerConnection.js] <A._remoteTrackAdded>: TPC[2,p2p:false] remote track added: fe3bc056-d5ed-49fc-a0cc-0fd7cd109e16-2 audio
Logger.js:154 2020-11-23T15:53:55.687Z [modules/RTC/TraceablePeerConnection.js] <A._remoteTrackAdded>: TPC[2,p2p:false] associated ssrc 214d2a51 636798380
Logger.js:154 2020-11-23T15:53:55.687Z [JitsiConference.js] <re.onRemoteTrackAdded>: Trying to add remote JVB track, when in P2P - IGNORED
Logger.js:154 2020-11-23T15:53:55.687Z [modules/RTC/TraceablePeerConnection.js] <A._remoteTrackAdded>: TPC[2,p2p:false] remote track added: e7d64c45-adf1-4628-a51d-a3b1d1782995-2 video
Logger.js:154 2020-11-23T15:53:55.688Z [modules/RTC/TraceablePeerConnection.js] <A._remoteTrackAdded>: TPC[2,p2p:false] associated ssrc 214d2a51 1944254249
Logger.js:154 2020-11-23T15:53:55.688Z [JitsiConference.js] <re.onRemoteTrackAdded>: Trying to add remote JVB track, when in P2P - IGNORED
Logger.js:154 2020-11-23T15:53:55.689Z [modules/xmpp/SdpConsistency.js] <o.makeVideoPrimarySsrcsConsistent>: TPC[2,p2p:false] sdp-consistency replacing new ssrc2616795336 with cached 2616795336
Logger.js:154 2020-11-23T15:53:55.692Z [modules/RTC/TraceablePeerConnection.js] <A._adjustLocalMediaDirection>: Adjusted local audio direction to inactive
Logger.js:154 2020-11-23T15:53:55.692Z [modules/RTC/TraceablePeerConnection.js] <A._adjustLocalMediaDirection>: Adjusted local video direction to inactive
Logger.js:154 2020-11-23T15:53:55.697Z [modules/xmpp/JingleSessionPC.js] addRemoteStream - OK, SDPs: s s
Logger.js:154 2020-11-23T15:53:55.698Z [modules/xmpp/JingleSessionPC.js] <w.notifyMySSRCUpdate>: removal not necessary
Logger.js:154 2020-11-23T15:53:55.698Z [modules/xmpp/JingleSessionPC.js] <w.notifyMySSRCUpdate>: addition not necessary
Logger.js:154 2020-11-23T15:53:55.720Z [modules/UI/videolayout/VideoLayout.js] <Object.remoteVideoActive>: 214d2a51 video is now active <video muted=​"true" playsinline=​"true" autoplay id=​"remoteVideo_e7d64c45-adf1-4628-a51d-a3b1d1782995-1" style>​​
Logger.js:154 2020-11-23T15:53:55.722Z [modules/UI/videolayout/LargeVideoManager.js] hover in 214d2a51
JitsiRemoteTrack.js:214 (TIME) Render video: 7167.350000003353
JitsiRemoteTrack.js:233 (TIME) TTFM video: 1171.9199999934062

… I am updated to the most recent version via apt-get install jitsi-meet (2.0.5142-1)