.
OS : windows 7
When the peer call setLocalDesription, it fail.
##################################################
if (isInitiator) {
console.log('Creating Data Channel');
dataChannel = peerConn.createDataChannel('photos');
onDataChannelCreated(dataChannel);
console.log('Creating an offer');
peerConn.createOffer(onLocalSessionCreated, logError);
} else {
peerConn.ondatachannel = function(event) {
console.log('ondatachannel:', event.channel);
dataChannel = event.channel;
onDataChannelCreated(dataChannel);
};
}
}
function onLocalSessionCreated(desc) {
console.log('local session created:', desc);
peerConn.setLocalDescription(desc, function() {
console.log('sending local desc:', peerConn.localDescription);
sendMessage(peerConn.localDescription);
}, logError);
/*
peerConn.setLocalDescription(desc);
console.log('sending local desc:', peerConn.localDescription);
sendMessage(peerConn.localDescription);
*/
}
##################################################
The log is:
##################################################
Creating Data Channel
main.js:247 onDataChannelCreated: RTCDataChannel {send: ƒ, label: "photos", ordered: true, maxRetransmitTime: 65535, maxRetransmits: 65535, …}
main.js:220 Creating an offer
main.js:232 local session created: RTCSessionDescription {type: "offer", sdp: "v=0
↵o=- 7092203944903238858 2 IN IP4 127.0.0.1
↵s…id:data
↵a=sctpmap:5000 webrtc-datachannel 1024
↵"}sdp: "v=0
↵o=- 7092203944903238858 2 IN IP4 127.0.0.1
↵s=-
↵t=0 0
↵a=group:BUNDLE data
↵a=msid-semantic: WMS
↵m=application 9 DTLS/SCTP 5000
↵c=IN IP4 0.0.0.0
↵a=ice-ufrag:uX0b
↵a=ice-pwd:AVmsmzfP7hilo9+k5aA0j73T
↵a=ice-options:trickle
↵a=fingerprint:sha-256 26:36:B2:06:96:84:97:6B:EA:58:72:C6:70:7B:B9:D1:29:07:C3:BD:04:E3:8C:0C:21:3B:A1:4E:43:92:96:B3
↵a=setup:actpass
↵a=mid:data
↵a=sctpmap:5000 webrtc-datachannel 1024
↵"type: "offer"__proto__: RTCSessionDescription
main.js:232 local session created: RTCSessionDescription {type: "offer", sdp: "v=0
↵o=- 3324282072586107475 2 IN IP4 127.0.0.1
↵s…id:data
↵a=sctpmap:5000 webrtc-datachannel 1024
↵"}sdp: "v=0
↵o=- 3324282072586107475 2 IN IP4 127.0.0.1
↵s=-
↵t=0 0
↵a=group:BUNDLE data
↵a=msid-semantic: WMS
↵m=application 9 DTLS/SCTP 5000
↵c=IN IP4 0.0.0.0
↵a=ice-ufrag:LsOc
↵a=ice-pwd:KrFJCKdeA5XppQtilOVGuto3
↵a=ice-options:trickle
↵a=fingerprint:sha-256 CB:4E:B5:25:34:E5:3B:22:71:15:0B:53:43:BF:22:A8:67:51:79:A0:B4:DD:5F:F8:46:1B:9C:95:46:54:E2:EE
↵a=setup:actpass
↵a=mid:data
↵a=sctpmap:5000 webrtc-datachannel 1024
↵"type: "offer"__proto__: RTCSessionDescriptionsdp: (...)toJSON: ƒ toJSON()type: (...)constructor: ƒ RTCSessionDescription()Symbol(Symbol.toStringTag): "RTCSessionDescription"get sdp: ƒ ()set sdp: ƒ ()get type: ƒ ()set type: ƒ ()__proto__: Object
main.js:414 OperationError: Failed to set local offer sdp: Failed to push down transport description for data: Local fingerprint does not match identity. Expected: sha-256 CB:4E:B5:25:34:E5:3B:22:71:15:0B:53:43:BF:22:A8:67:51:79:A0:B4:DD:5F:F8:46:1B:9C:95:46:54:E2:EE Got: sha-256 26:36:B2:06:96:84:97:6B:EA:58:72:C6:70:7B:B9:D1:29:07:C3:BD:04:E3:8C:0C:21:3B:A1:4E:43:92:96:B3 DOMException: Failed to set local offer sdp: Failed to push down transport description for data: Local fingerprint does not match identity. Expected: sha-256 CB:4E:B5:25:34:E5:3B:22:71:15:0B:53:43:BF:22:A8:67:51:79:A0:B4:DD:5F:F8:46:1B:9C:95:46:54:E2:EE Got: sha-256 26:36:B2:06:96:84:97:6B:EA:58:72:C6:70:7B:B9:D1:29:07:C3:BD:04:E3:8C:0C:21:3B:A1:4E:43:92:96:B3
logError @ main.js:414
main.js:414 OperationError: Session error code: ERROR_CONTENT. Session error description: Failed to push down transport description for data: Local fingerprint does not match identity. Expected: sha-256 CB:4E:B5:25:34:E5:3B:22:71:15:0B:53:43:BF:22:A8:67:51:79:A0:B4:DD:5F:F8:46:1B:9C:95:46:54:E2:EE Got: sha-256 26:36:B2:06:96:84:97:6B:EA:58:72:C6:70:7B:B9:D1:29:07:C3:BD:04:E3:8C:0C:21:3B:A1:4E:43:92:96:B3. DOMException: Session error code: ERROR_CONTENT. Session error description: Failed to push down transport description for data: Local fingerprint does not match identity. Expected: sha-256 CB:4E:B5:25:34:E5:3B:22:71:15:0B:53:43:BF:22:A8:67:51:79:A0:B4:DD:5F:F8:46:1B:9C:95:46:54:E2:EE Got: sha-256 26:36:B2:06:96:84:97:6B:EA:58:72:C6:70:7B:B9:D1:29:07:C3:BD:04:E3:8C:0C:21:3B:A1:4E:43:92:96:B3.
logError @ main.js:414
##################################################
How to debug it? This is bug about Chrome?
Thank you.