shinyoshiaki / werift-webrtc

WebRTC Implementation for TypeScript (Node.js), includes ICE/DTLS/SCTP/RTP/SRTP/WEBM/MP4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TransactionFailed uncaught exception

diogeneshamilton opened this issue · comments

Getting this sometimes, after the connection is open for a while or it tries to reconnect:
Screenshot 2024-02-01 at 11 41 12 AM

Is there any way to prevent this error or catch it so it doesn't crash the server?

It appears werift is not handling a 438 stale nonce response correctly? I see they handled it in aioice:
aiortc/aioice#28

Thanks for the report, werift-ice has a similar problem because it references the old aioice code. I will fix it.

Awesome, thank you!

Not trying to rush or be difficult, but curious what the timeline might be for fixing this? I'm still having issues here and want to either catch the exception or the library doesn't throw it.
Any other workarounds you can suggest?

I've been busy lately, so a fundamental solution will take time.
If I just avoid throwing exceptions, I think it can be accomplished relatively quickly.
However, it is not a fundamental solution and there will still be problems using the TURN feature.
Just to confirm, are you sure you are not using the TURN function?
If not using, I think the problem can be solved by simply not using TURN when setting up peerConnection.

To be clear, we are using TURN function. Maybe we're not implementing it correctly? Either way, thanks for the responses and we'll make do in the meantime!

I guess I was a bit quick to close this issue- it seems this happens right after a connection is closed, is there any thing I can do in addition to connection.close() that would stop this from happening?

@diogeneshamilton 438 error handling is now supported

Amazing, thank you! I will look out for a new release.

Hi there @shinyoshiaki 👋 Do you have an idea when you will be releasing this fix?