[TOPBLOCKER] Takes too long (sometimes over 5 seconds) to get the AccessToken from watcher.C
Bug #1387829 reported by
Chris Wayne
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
go-onlineaccounts |
Fix Committed
|
Critical
|
Unassigned |
Bug Description
In some go scopes, the scope cannot get the access token to an authenticated account even after 6 seconds of trying. This results in no data being shown, and a "Please setup an account" result being shown, even though there is an account setup, which is of course a horrible user experience.
Prior to watcher.Wait(), I had setup a system to try to get the access token from AuthData, then sleep 100ms and retry if none was receieved. I've seen this run 60 times without receiving the AccessToken from the channel. Is there either a better way to do this from within the scope, or is this an issue with signond itself, or the bindings?
Changed in go-onlineaccounts: | |
status: | New → Confirmed |
description: | updated |
To post a comment you must log in.
When I try to use watcher.Settle() it still doesn't work, although if I do the same exact code in account- watcher- test, it gets the AuthData immediately. Is there something different about scopes? Here is my main():
http:// paste.ubuntu. com/8750630/
I never see the "signed in" in the logs.