Wunderfitz/harbour-fernschreiber

Settings Page "Failed to parse JSON object as TDLib request"

Opened this issue · 3 comments

Version: 0.16-4 (latest Version from Storeman/Open Repos)

This error happens when you open the settings. Im logged in (I can see my chats and the preview in the app grid says "connected")

Log output with QT_LOGGING_RULES="fernschreiber.*=true doesn't say much:

[D] unknown:0 - [TDLibWrapper] Retrieving User Profile Photos
[D] unknown:0 - [TDLibWrapper] Sending request to TD Lib, object type name: "getUserProfilePhotos"
[D] unknown:0 - [TDLibReceiver] Received an error
[D] unknown:0 - [TDLibWrapper] Get active sessions
[D] unknown:0 - [TDLibWrapper] Sending request to TD Lib, object type name: "getActiveSessions"
[W] unknown:85 - file:///usr/share/harbour-fernschreiber/qml/components/settingsPage/SettingsUserProfile.qml:85:27: Unable to assign [undefined] to QString
[W] unknown:115 - file:///usr/share/harbour-fernschreiber/qml/components/settingsPage/SettingsUserProfile.qml:115:27: Unable to assign [undefined] to QString
[W] unknown:145 - file:///usr/share/harbour-fernschreiber/qml/components/settingsPage/SettingsUserProfile.qml:145:27: Unable to assign [undefined] to QString

image

I had a race condition in an earlier release that caused this issue here directly after registering the first time, but that was gone after a restart - but should be fixed since 0.15 with 4643310.
Is that still reproducible?

Well I did a fresh install of the latest release (0.16 from open repos). The error does not happen all the time but most of the time. It could be another race condition. Are there any other debugging options I should enable?

Edit: it seems like that when I logout and login again it works until I close and restart the app. This could be just coincidence but i tried it multiple times always with the same result.

Sorry, obviously overlooked your latest reply. Really strange then... If you want, you can also try deleting the local TDLib folder ~/.local/share/de.ygriega/fernschreiber and restart the app. You will need to login again, but then you should have a clean new start...
If it still happens, the debug options are listed in the README: https://github.com/Wunderfitz/harbour-fernschreiber#debug