Ionic Db Connection Lose


I am doing an app to wifi web config of an ESP8266. The devices, when starts create a acces point to set up the wifi connection.

After connect to the ap ( without internet connectio ) , this is my code to config the device from the app:

this.http.get('').map(res => res.json()).subscribe(data => {
        this.posts = data.status;
        this.isConnectedWifi = true;
        this.spinnerOn = false;
        this.isConnectedCloud = true;
        err => {
            alert("Conectate a Mi huerta");

When i receive “Status: ok” from device i want to connect to IonicDb to get data, and i can´t connect anymore to the service, receiving this error:

e @ polyfills.js:3
t.scheduleTask @ polyfills.js:3
e.scheduleMacroTask @ polyfills.js:3
(anonymous) @ polyfills.js:3
send @ VM8537:3
Request.end @ VM8300 main.js:134406
Insights.submit @ VM8300 main.js:63073
(anonymous) @ VM8300 main.js:62983
t.invokeTask @ polyfills.js:3
onInvokeTask @ VM8300 main.js:38812
t.invokeTask @ polyfills.js:3
e.runTask @ polyfills.js:3
invoke @ polyfills.js:3
e.args.(anonymous function) @ polyfills.js:2
VM8300 main.js:63155 Ionic Insights: Could not send insights. Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.

How can i reconnect to process a query to ionicDB?

Nobody knows? i have read all docs and nothing…