Comment 22 for bug 1502282

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Problem: metadata.InternetConnectivity() is always returning 0 (for Unknown), where: metadata is the pointer passed into Activate().

http://bazaar.launchpad.net/~unity-team/go-unityscopes/v2/view/head:/metadata.go#L47

Don't know if this is a golang binding, c++ scope framework, unity8, network stack, or local coding issue.

But the local code is simple:

func (tt *dbScope) Activate(result *scopes.Result, metadata *scopes.ActionMetadata) (*scopes.ActivationResponse, error) {

         connStat := metadata.InternetConnectivity()

        log.Printf("== dropbox photos. Activate. Conn Status: %d\n", connStat)

That ^ prints the following, even though network is up and the indicator shows it as up:

2016/01/26 20:44:54 == dropbox photos. Activate. Conn Status: 0