[Fixed with v1.2.1] Edge/Protractor issue "Server terminated early with status 1"


#1

Note: This guide is obsolete with the release of Ranorex Webtestit 1.2.1.
Only TypeScript/Protractor projects created with Ranorex Webtestit 1.2.0 and below are affected by the following issue. Open such projects with Ranorex Webtestit 1.2.1 or higher to apply the fix automatically.

If you are using Windows, TypeScript/Protractor, and have a Microsoft Edge endpoint, you may be seeing the following error:

[14:53:31] E/launcher - Error: Error: Server terminated early with status 1
    at earlyTermination.catch.e (C:\dev\repos\ts-demoshop\node_modules\selenium-webdriver\remote\index.js:252:52)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

[14:53:31] E/launcher - Process exited with error code 100 

Additionally to this error, all other endpoints may no longer work, until the project is closed and re-opened.
This issue is caused by a bug in a dependency (Webdriver Manager) of a dependency (Protractor) which has since been fixed. If you are still getting this error in your project, the reason is most likely a caching issue courtesy of NPM.

With the next version of Ranorex Webtestit, we will roll out a proper fix for this problem.

However, if you do not wish to wait so long, you can fix it manually by following these simple steps:

  1. Open Windows Explorer in your project’s directory
  2. Close Ranorex Webtestit
  3. Find and delete the file package-lock.json
  4. Find and delete the folder node_modules
  5. In a terminal run npm cache clear --force
  6. Open your project again

Check out this short video for more details:

The dependencies should be fully reloaded, and you should find the error to be gone.
Note: due to another issue with this dependency, Microsoft Edge might not work on the first run, and you may have to run your tests twice to see them working again. We are currently looking into a proper fix for this as well.

If this did not work for you, please do not hesitate to create a Help Request, and we will assist you with further troubleshooting.