Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin error handler for plugin adb failed to parse error message: TypeError: Assignment to constant variable #2528

Closed
paliwaljee opened this issue Mar 23, 2022 · 1 comment · Fixed by #2530
Assignees
Labels
bug a bug in the software itself

Comments

@paliwaljee
Copy link

UBports Installer 0.9.2-beta (exe)
Environment: Microsoft Windows 11 Home Single Language 10.0.22000 Windows 10.0.22000 x64 22000 0.0 NodeJS v16.13.0
Device: [(device not yet detected)]
(https://devices.ubuntu-touch.io/device/(device not yet detected))
Target OS: (target os not yet set)
Settings: undefined
OPEN-CUTS run: https://ubports.open-cuts.org/run/623b7c745f2433000898d52c

Error:

Unknown Error
@NeoTheThird
Copy link
Member

NeoTheThird commented Mar 23, 2022

Two errors going on here. One unhandled problem in ADB, which will be fixed in promise-android-tools 4.0.10. While trying to handle that, we're doing weird things by assigning to a const.

command: exec: {"cmd":["adb","-P",5037,"shell","getprop ro.product.device"],"error":{"message":"Command failed: C:\\Users\\lalit\\AppData\\Local\\Temp\\26QXuFeDBKOo01Gy82McrKkqlwQ\\resources\\app.asar.unpacked\\node_modules\\android-tools-bin\\dist\\win32\\x86\\adb.exe -P 5037 shell getprop ro.product.device\nerror: protocol fault (couldn't read status): connection reset","code":1},"stderr":"error: protocol fault (couldn't read status): connection reset"}
warn: Plugin error handler for plugin adb failed to parse error message: TypeError: Assignment to constant variable.
error: Error: plugin wait(): Error: {"message":"{\"error\":{\"code\":1,\"cmd\":\"C:\\\\Users\\\\lalit\\\\AppData\\\\Local\\\\Temp\\\\26QXuFeDBKOo01Gy82McrKkqlwQ\\\\resources\\\\app.asar.unpacked\\\\node_modules\\\\android-tools-bin\\\\dist\\\\win32\\\\x86\\\\adb.exe -P 5037 shell getprop ro.product.device\"},\"stderr\":\"error: protocol fault (couldn't read status): connection reset\"}","name":"adb"}
stack trace: Error: {"message":"{\"error\":{\"code\":1,\"cmd\":\"C:\\\\Users\\\\lalit\\\\AppData\\\\Local\\\\Temp\\\\26QXuFeDBKOo01Gy82McrKkqlwQ\\\\resources\\\\app.asar.unpacked\\\\node_modules\\\\android-tools-bin\\\\dist\\\\win32\\\\x86\\\\adb.exe -P 5037 shell getprop ro.product.device\"},\"stderr\":\"error: protocol fault (couldn't read status): connection reset\"}","name":"adb"}
    at PluginIndex.__pluginErrorHandler (C:\Users\lalit\AppData\Local\Temp\26QXuFeDBKOo01Gy82McrKkqlwQ\resources\app.asar\src\core\plugins\index.js:193:11)
    at C:\Users\lalit\AppData\Local\Temp\26QXuFeDBKOo01Gy82McrKkqlwQ\resources\app.asar\src\core\plugins\index.js:151:24
    at C:\Users\lalit\AppData\Local\Temp\26QXuFeDBKOo01Gy82McrKkqlwQ\resources\app.asar.unpacked\node_modules\promise-android-tools\node_modules\cancelable-promise\dist\CancelablePromise.js:27:18
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@NeoTheThird NeoTheThird changed the title Unknown Error Plugin error handler for plugin adb failed to parse error message: TypeError: Assignment to constant variable Mar 23, 2022
@NeoTheThird NeoTheThird self-assigned this Mar 23, 2022
@NeoTheThird NeoTheThird added the bug a bug in the software itself label Mar 23, 2022
@NeoTheThird NeoTheThird linked a pull request Mar 24, 2022 that will close this issue
llewelld pushed a commit to llewelld/ubports-installer that referenced this issue Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in the software itself
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants