harbour-fernschreiber icon indicating copy to clipboard operation
harbour-fernschreiber copied to clipboard

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

Open Simerax opened this issue 3 years ago • 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

Simerax avatar Jun 14 '22 15:06 Simerax

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 46433109a647e4ccd089bd0ab48430e3290b8220. Is that still reproducible?

Wunderfitz avatar Jun 19 '22 10:06 Wunderfitz

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.

Simerax avatar Jun 20 '22 06:06 Simerax

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

Wunderfitz avatar Jul 04 '22 20:07 Wunderfitz