Likeing isn't displayed correctly

Bug #1286778 reported by Kai Mast
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
friends-app (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

when I like a post it is successfully like on the service (when I look at it via the web interface) but friends doesn't indicate so.

When run from qtcreator I can also see the following error:

** (process:10646): CRITICAL **: file /build/buildd/libfriends-0.1.2+14.04.20131108.1/src/dispatcher.vala: line 146: uncaught error: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) (g-dbus-error-quark, 4)

No idea what the cause of this could be.

Revision history for this message
Robert Bruce Park (robru) wrote :

When you click 'Like' in friends-app, there's a kind of complicated dance that goes on.

First, friends-app initiates a dbus call to friends-dispatcher to tell it to perform the like. then friends-dispatcher contacts the live web API to do the like. then, *after* receiving the response from the web API, it marks in the deemodel that the like count should be increased by one, and it should be marked as liked=true. *THEN* it returns the results to friends-app over the dbus api.

So when it says dbus timeout there, basically what's happening is that the web API request is taking longer than dbus is willing to wait for the result. This is more likely to happen if the website is under load, or if your connection is just slow.

The best solution for this would be to make the dbus call asynchronous, so it doesn't wait for the result before returning. A decent workaround would be to just make the call fire-and-forget, so that we don't bother caring about the return from the web API at all.

Changed in friends-app (Ubuntu):
status: New → Triaged
Changed in friends-app (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.