yjs / y-webrtc

WebRTC Connector for Yjs
MIT License
448 stars 109 forks source link

TypeError: Cannot read property 'encrypt' of undefined #26

Closed iamgruuten closed 3 years ago

iamgruuten commented 3 years ago

Describe the bug I was trying to disconnect and connect the room but encounter an error

TypeError: Cannot read property 'encrypt' of undefined
Module.encrypt

  49 |   return /** @type {PromiseLike<Uint8Array>} */ (promise.resolve(data))
  50 | }
  51 | const iv = crypto.getRandomValues(new Uint8Array(12))
> 52 | return crypto.subtle.encrypt(
     | ^  53 |   {
  54 |     name: 'AES-GCM',
  55 |     iv

To Reproduce Steps to reproduce the behavior:

  1. attempts to disconnect room
  2. attempts to destroy room
  3. Error produced

Expected behavior It should properly destroy the room

Environment Information

dmonad commented 3 years ago

Are you destroying a room and then reconnecting?

I don't want to play guessing games. These details are insufficient. I asked for your browser version specifically.

dmonad commented 3 years ago

Please feel free to open a new ticket where you explain what exactly you do.