at_client_sdk
at_client_sdk copied to clipboard
Failed to get shared key while encrypting / decrypting message
Describe the bug
Getting the exception "Null" is not subtype of type 'FutureOr<String>' while sending and receiving notifications.
We received a notification on atmosphere pro, we got the above mentioned exception while decrypting.
To Reproduce Steps to reproduce the behavior (Not always reproducible):
- Log in with
perfectbluesnowskiingon the receiver side. - Send a notification to the atsign.
- Got the above exception on decrypting.
Expected behavior The notification should be decrypted without any error.
Screenshots

Smartphone (please complete the following information):
- Device: [e.g. iPhone11]
- OS: [e.g. iOS14.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 59]
Were you using an @application when the bug was found?
@mosphere pro
Additional context Add any other context about the problem here.
I was able to replicate this issue only when the network is down. Steps I followed
- Switched off the network
- I could see the error in the app
- Sent a file from a desktop app
- Switched on the network back, I received the notification and was able to download the file.
https://user-images.githubusercontent.com/43639593/171405592-a394ed44-24c9-4c75-911c-a6d66dac5970.mp4
Note: In the desktop app, For the banamaniathenenvious atsign. There was an invalid or corrupted pad block exception.

@nitesh2599 did you also face "invalid or corrupted pad block" exception as reported by Purnima?
@murali-shris No, we didn't face "invalid or corrupted pad block".
@sachins-geekyants : This issue is fixed as a part of exception chaining PR and currently the changes are available in at_client trunk branch. Please re-test and let us know if you still see the issue.
@sachins-geekyants can you confirm this has been fixed?
@gkc I haven't experienced this issue lately, but we can keep this ticket open until a new version of atmosphere is available to test for wider users.
We have deployed @mopsherePro 1.0.7(43), which uses shouldDecrypt parameter to decrypt notifications.
Moving to requires validation.
Closing as obsolete