Search code examples
javascriptnativetabris

Tabrisjs Cannot establish connection package.json file


I followed the tabrisjs tutorial instructions to the letter when I get to this part

In the URL tab of the developer app, enter:

http://(development-machine-ip-address):8080/

I do as it instructs and I get the following error

Could not establish connection

Could not open file: http://(ipaddress):8080/package.json

How do I go about figuring out why it cannot find the file?

I am on the same network as my development laptop with the android device , so that shouldn't be the problem.

here is the link:

https://tabrisjs.com/documentation/0.9/getting-started


Solution

  • Open a browser on the device and point it to the package.json URL the developer client complains about (http://(ipaddress):8080/package.json). If the browser can open the file, but the developer client still complains, then this is a bug and should be reported in the tabris.js issue tracker. If the browser cannot open this file, the problem is on the server side.

    One common reason is that http-server has been started in another directory.

    Another common problem is that there is already a server running on port 8080. In this case, http-server would open on the next available port, e.g. 8081.