Skip to content
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

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

Open
Simerax opened this issue Jun 14, 2022 · 3 comments
Open

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

Simerax opened this issue Jun 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Simerax
Copy link

Simerax commented Jun 14, 2022

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

@Wunderfitz Wunderfitz added the bug Something isn't working label Jun 19, 2022
@Wunderfitz
Copy link
Owner

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?

@Simerax
Copy link
Author

Simerax commented Jun 20, 2022

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.

@Wunderfitz
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants