libsignal_protocol_dart
libsignal_protocol_dart copied to clipboard
Unhandled Exception: InvalidMessageException - No valid sessions. [InvalidMessageException - Bad Mac!][0]
Getting error while decrypting the message
/flutter ( 3857): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: InvalidMessageException - No valid sessions. [InvalidMessageException - Bad Mac!][0]
E/flutter ( 3857): #0 SessionCipher._decrypt
session_cipher.dart:186
E/flutter ( 3857): #1 SessionCipher.decryptWithCallback
session_cipher.dart:109
E/flutter ( 3857):
Hey @PremchandGat , did you managed to solve this?
Sometimes I get this error too, however I cannot reproduce it 🤔
Hey @simonasposka, i haven't worked again on that so i haven't solved this issu. If you want the code to reproduce this error that might i can send you
I'd be very grateful if you shared the code that causes this error 🙇♂️
https://github.com/PremchandGat/lib_signal_flutter Here the code @simonasposka
Hello,
I have the same problem. I implemented a small test program which works fine but implementing the library into my larger project I get the same error message. As I cannot share my bigger project (which would be unpractical too), I would like to know
- what this error means,
- how I can run into this exception and
- what is needed for a session to be the same (aka what values do I need to double-check on sender and receiver)
to hopefully debug my program. The general implementation is correct so the devil has to be in the detail.