bleakgrey / tootle

GTK-based Mastodon client for Linux
GNU General Public License v3.0
401 stars 61 forks source link

Tootle always thinks there is no active account #214

Closed lionirdeadman closed 4 years ago

lionirdeadman commented 4 years ago

What should happen: Tootle should recognise the account I'm using and show it in the appropriate area

What happened instead: It never realises that I have an account active

How to reproduce: Steps to reproduce the behavior:

  1. Login
  2. Check if account is active in the account pop-over

Screenshots: image

Build context:

bleakgrey commented 4 years ago

Uhhh... does this persist when you restart the app?

lionirdeadman commented 4 years ago

Yes, even accross a reboot. I'll post logs.

flatpak run com.github.bleakgrey.tootle 
** Message: 18:15:34.557: Build.vala:12: Tootle 1.0.0
** Message: 18:15:34.557: Build.vala:13: Running on: GNOME master (Flatpak runtime)
** Message: 18:15:34.557: Build.vala:14: Build type: FROM_SOURCE
** Message: 18:15:34.702: Network.vala:50: GET: https://fosstodon.org/api/v1/accounts/verify_credentials

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:34.716: tootle_instance_account_get_stream_url: assertion 'self != NULL' failed

** (com.github.bleakgrey.tootle:2): WARNING **: 18:15:34.809: Request.vala:94: No account was specified or found for GET: /api/v1/timelines/home?limit=16

** (com.github.bleakgrey.tootle:2): WARNING **: 18:15:34.809: Request.vala:94: No account was specified or found for GET: /api/v1/notifications?limit=16

** (com.github.bleakgrey.tootle:2): WARNING **: 18:15:34.809: Request.vala:94: No account was specified or found for GET: /api/v1/timelines/public?local=true&limit=16

** (com.github.bleakgrey.tootle:2): WARNING **: 18:15:34.809: Request.vala:94: No account was specified or found for GET: /api/v1/timelines/public?limit=16
** Message: 18:15:35.222: Network.vala:50: GET: https://fosstodon.b-cdn.net/accounts/avatars/000/198/088/original/20463e8c32735345.png
** Message: 18:15:35.224: Network.vala:50: GET: https://fosstodon.org/api/v1/timelines/home?limit=16
** Message: 18:15:35.224: Network.vala:50: GET: https://fosstodon.org/api/v1/notifications?limit=16
** Message: 18:15:35.224: Network.vala:50: GET: https://fosstodon.org/api/v1/timelines/public?local=true&limit=16
** Message: 18:15:35.224: Network.vala:50: GET: https://fosstodon.org/api/v1/timelines/public?limit=16
** Message: 18:15:36.454: Network.vala:50: GET: https://fosstodon.b-cdn.net/cache/accounts/avatars/000/024/697/original/f9bef440b7f88842.jpeg

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:36.547: file ../src/API/Entity.vala: line 103: uncaught error: Unknown notification type: poll (tootle-oopsie-quark, 2)

(com.github.bleakgrey.tootle:2): Json-WARNING **: 18:15:36.547: Failed to deserialize "kind" property of type "(null)" for an object of type "TootleAPINotification"
** Message: 18:15:36.549: Network.vala:50: GET: https://fosstodon.b-cdn.net/accounts/avatars/000/178/191/original/157979125c43fe56.jpg
** Message: 18:15:36.551: Network.vala:50: GET: https://fosstodon.b-cdn.net/accounts/avatars/000/249/469/original/3441f560af9af314.png

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:36.551: file ../src/API/Entity.vala: line 103: uncaught error: Unknown notification type: poll (tootle-oopsie-quark, 2)

(com.github.bleakgrey.tootle:2): Json-WARNING **: 18:15:36.551: Failed to deserialize "kind" property of type "(null)" for an object of type "TootleAPINotification"
** Message: 18:15:36.553: Network.vala:50: GET: https://fosstodon.b-cdn.net/cache/accounts/avatars/000/222/540/original/906e78fe6ba48118.png

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:36.553: file ../src/API/Entity.vala: line 103: uncaught error: Unknown notification type: poll (tootle-oopsie-quark, 2)

(com.github.bleakgrey.tootle:2): Json-WARNING **: 18:15:36.553: Failed to deserialize "kind" property of type "(null)" for an object of type "TootleAPINotification"

** (com.github.bleakgrey.tootle:2): WARNING **: 18:15:38.169: Cache.vala:97: "https://fosstodon.org/media_proxy/104605109538184133/small" -> Pixbuf: FAIL (Server returned 404: Not Found)
** Message: 18:15:38.582: Network.vala:50: GET: https://fosstodon.b-cdn.net/cache/accounts/avatars/000/254/131/original/04c8cd2c5ea37512.png

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:38.591: tootle_widgets_notification_get_notification: assertion 'self != NULL' failed

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:38.591: tootle_api_notification_get_id: assertion 'self != NULL' failed

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:38.591: int64_parse: assertion 'str != NULL' failed

** (com.github.bleakgrey.tootle:2): CRITICAL **: 18:15:54.256: file ../src/Services/Streams.vala: line 127: uncaught error: JSON data must be UTF-8 encoded (json-parser-error-quark, 6)

** (com.github.bleakgrey.tootle:2): WARNING **: 18:15:54.257: Streams.vala:80: Couldn't handle websocket event. Reason: Received Json.Node for TootleAPIStatus is null!

(redacted a ton of image requests from the log, shouldn't be important)

bleakgrey commented 4 years ago

I think I turned off logging in the account service. It's missing some auth stages.

lionirdeadman commented 4 years ago

It works now... I don't know what happened. Feel free to close. :thinking:

(might be worth keeping open since reproduction is probably possible on first install, I might just do that)

bleakgrey commented 4 years ago

Is it just a visual glitch? This one is really weird, it should be crashing if it fails to auth :/

lionirdeadman commented 4 years ago

I think it might've been due to me cancelling a first login attempt. Will try now.

bleakgrey commented 4 years ago

Confirmed to happen when the first account is added by the user.