I've been getting this error randomly since I recently used URLSessionWebSocketTask
, which causes my program to crash every time:
Fatal error: Only one of message or error should be nil
But I can't find a specific way to reproduce it, because I have no idea. It doesn't seem to be caused by network quality or any unsafe code I wrote.
So I'd like to ask, have you guys encountered this error recently? I need to know if it's caused by the SDK.
- Xcode 11.3.1 (11C504)
- macOS 10.15.3 (19D76)
- iOS 13.3.1 (17D50)
p.s. I searched the internet and found only this related thread, and it didn't help.