Search code examples
node.jsangularprotractor

Error while executing e2e tests for angular 8, protractor


After executing the CLI command (ng e2e) this is the error I am getting in the console:

USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: 
A device attached to the system is not functioning

Further information and versions:

  • Windows 10
  • Angular 8
  • chromedriver_87.0.4280.20.exe
  • node v12.9.1 (tested with latest i.e. 14.x)
  • protractor v7.0.0

This is driving me mad, and I am not able to debug it or find much information otherwise online.


Solution

  • TL;DR; (and the whole story): It was happening in a particular version of the Chrome driver.

    As pointed out by Celia Gaylard in another thread the issue seems to be with logging.

    We ignored the issue for a while and after some update, it vanished into the same thin air it came from.