You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In at_client, the monitor connection fails to start with the below exception
WARNING|2024-02-21 10:29:34.818178|Monitor (@alice🛠)|runZonedGuarded received socket error Converting object to an encodable object failed: Instance of 'Metadata' - calling _handleError
INFO|2024-02-21 10:29:34.818691|Monitor (@alice🛠)|socket.listen onDone called. Will destroy socket, set status stopped, call retryCallback
INFO|2024-02-21 10:29:34.818936|Monitor (@alice🛠)|Monitor error Converting object to an encodable object failed: Instance of 'Metadata' - calling the retryCallback
The reason for the above failure is because the Metadata object fails JSON Encode due to the NullPointerException. Attaching the error stack trace
Below condition in at_key.dart is the root cause the above mentioned exceptions. The default value of fullJson is true. Since fullJson is true and the condtion is "OR", even if pubKeyHash is "NULL", the control still enters into IF condition and toJson() is invoked on NULL object leading to the above exceptions.
Describe the bug
In at_client, the monitor connection fails to start with the below exception
The reason for the above failure is because the Metadata object fails JSON Encode due to the NullPointerException. Attaching the error stack trace
Below condition in
at_key.dart
is the root cause the above mentioned exceptions. The default value offullJson
is true. SincefullJson
is true and the condtion is "OR", even ifpubKeyHash
is "NULL", the control still enters into IF condition and toJson() is invoked on NULL object leading to the above exceptions.Steps to reproduce
Expected behavior
The Monitor connection should be started successfully.
The text was updated successfully, but these errors were encountered: