Skip to content

Unable to run test android in cli 8.1.1 #5572

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

Closed
jcassidyav opened this issue Sep 15, 2021 · 3 comments · Fixed by #5573
Closed

Unable to run test android in cli 8.1.1 #5572

jcassidyav opened this issue Sep 15, 2021 · 3 comments · Fixed by #5573
Labels

Comments

@jcassidyav
Copy link
Contributor

jcassidyav commented Sep 15, 2021

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.1.1
  • Cross-platform modules:
  • Android Runtime:
  • iOS Runtime:
  • XCode Version:
  • Plugin(s):

Describe the bug
Running ns test android results in the error

TypeError: Cannot read property 'hostname' of null
    at HttpClient.<anonymous> (C:\Users\jcassidy\AppData\Roaming\npm\node_modules\nativescript\lib\common\http-client.js:77:44)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\jcassidy\AppData\Roaming\npm\node_modules\nativescript\lib\common\http-client.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)```

Also when this is fixed running tests results in an error because the socket.io is not downloaded and saved correctly.

To Reproduce
execute ns test android on a project with tests configured that worked with cli 8.02.

Expected behavior
Tests should execute.

Sample project

Additional context

@EdJones
Copy link

EdJones commented Sep 15, 2021

With ns 8.1.1, I am getting the Cannot read property 'hostname' of null as a cli error when running ns publish iOS.

@rigor789
Copy link
Member

@EdJones #5573 should fix that as well, I'll bump a patch release shortly.

@rigor789 rigor789 added the bug label Sep 15, 2021
@rigor789
Copy link
Member

Published 8.1.2 with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants