API registration issues on Groceries tutorial


#1

I was going through the Groceries tutorial and registration worked fine at first. However, after I got to later parts in the tutorial I cannot seem to connect to the API. The error I am getting is:

Successfully synced application org.nativescript.Groceries on device emulator-5554.

JS: AssetExtraction: Can’t remove previously installed assets in /data/user/0/org.nativescript.Groceries/files/internal
JS: AssetExtraction: Can’t remove previously installed assets in /data/user/0/org.nativescript.Groceries/files/snapshots/x86
06-22 18:27:48.824 2178 3095 W GoogleTagManager: Failed to extract the container from the resource file. Resource is a UTF-8 encoded string but doesn’t contain a JSON container
JS: TypeError: Network request failed: java.io.IOException: unexpected end of stream on Connection{api.everlive.com:443, proxy=DIRECT hostAddress=52.205.240.5 cipherSuite=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 protocol=http/1.1} (recycle count=0)

I have tested the api with javascript as well using the following javascript with jquery:

 $.ajax({
     type: "POST",
     url: 'https://api.everlive.com/v1/GWfRtXi1Lwt4jcqK/Users',
     contentType: "application/json",
     data: JSON.stringify({
                 Username: "testmytest982372@gmail.com",
                 Email: "testmytest982372@gmail.com",
                 Password: "password"
             }),
     success: function(data) {
         alert(JSON.stringify(data));
     },
     error: function(error) {
         alert(JSON.stringify(error));
     }
 })

and I get the following error:

{“readyState”:0,“status”:0,“statusText”:“error”}

which seems to be the same error I get in my NativeScript app, confirming that either the API is no longer alive, or it is inaccessible.