openstf/adbkit

Error Unhandled rejection FailError: Failure: 'device still authorizing'

zangtian2 opened this issue ยท 2 comments

Example : Tracking devices

client.trackDevices()
        .then(function (tracker) {
            tracker.on('add', function (device) {
                var devInfo = {}
                devInfo.serial = ""
                devInfo.model = ""
                // mainWindow.webContents.send('monitor-devices', device.id)
                console.log('Device %s was plugged in', device.id)
                client.getProperties(device.id).then(function (err, properties) {
                    console.log(err)
                    properties.forEach(function (property) {
                        if (property) {
                            console.log(property)
                        }
                    })
...
#raise error "Unhandled rejection FailError: Failure: 'device still authorizing'"

but adb devices is fine.

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.87. Please mark this comment with ๐Ÿ‘ or ๐Ÿ‘Ž to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

setTimeout solve it