Likeing isn't displayed correctly
Bug #1286778 reported by
Kai Mast
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
friends-app (Ubuntu) |
Triaged
|
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/
No idea what the cause of this could be.
To post a comment you must log in.
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.