Skip to content

Unhandled Exception: InvalidMessageException - No valid sessions. [InvalidMessageException - Bad Mac!][0] #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PremchandGat opened this issue Jul 21, 2023 · 6 comments

Comments

@PremchandGat
Copy link

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):
E/flutter ( 3857): #2 ChatBloc._decryptMessage
chat_bloc.dart:97
E/flutter ( 3857):
E/flutter ( 3857): #3 Bloc.on..handleEvent
bloc.dart:229
E/flutter ( 3857):
E/flutter ( 3857):

@simonasposka
Copy link

simonasposka commented Aug 28, 2023

Hey @PremchandGat , did you managed to solve this?

Sometimes I get this error too, however I cannot reproduce it 🤔

@PremchandGat
Copy link
Author

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

@simonasposka
Copy link

I'd be very grateful if you shared the code that causes this error 🙇‍♂️

@PremchandGat
Copy link
Author

https://github.com/PremchandGat/lib_signal_flutter
Here the code @simonasposka

@McCrafterIV
Copy link

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

  1. what this error means,
  2. how I can run into this exception and
  3. 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.

@anisalibegic
Copy link

Was anyone successful with figuring out why this happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants