$rootScope:inprog: $digest already in progress
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://pegasus142.peginstances.com/api/apps/pegasus2.0","headers":{"Accept":"...
Possibly unhandled rejection: {"data":{"message":"User is NOT Logged in | Authenticated"},"status":401,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://www.telemetriasatelita...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://lbs.m2mgps.net/api/trips/keys","headers":{"Accept":"application/json, ...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://gps.crgreentrack.com/api/rawdata?keys=1","headers":{"Accept":"applicat...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://gps.iti-usa.com/api/rawdata?vids=156&fields=%24basic%2Chas_photo%2Caid...
UnknownError: Connection is closing.
Possibly unhandled rejection: {"options":{"preserveScope":false,"scope":"$SCOPE","hasBackdrop":true,"isolateScope":true,"clickOutsideToClose":false,"escapeToClose":true,"focusOnOpen":true,"disableParentScroll":true,"autoWrap":true,"fullscreen":false,...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://pro.analyzegps.cl/api/apps/pegasus2.0","headers":{"Accept":"applicatio...
Possibly unhandled rejection: {"options":{"preserveScope":true,"scope":"$SCOPE","parent":{"0":{"ng339":7,"__jstcache":[],"__oi":null},"length":1},"themable":true,"hasBackdrop":true,"disableParentScroll":true,"skipCompile":true,"element":{"0":{},"leng...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://monitoreo.progps.cl/api/trips/keys","headers":{"Accept":"application/j...
$compile:ctreq: Controller 'mdSelectMenu', required by directive 'mdOption', can't be found!
Possibly unhandled rejection: {"message":"user cannot read [assets]"}
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[],"jsonpCallbackParam":"callback","cache":{},"url":"https://cdn.pegasusgateway.com/apps/pegasus/pegmob//img/icons/trip.svg"...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://gps.robot.com.pe/api/apps/pegasus2.0","headers":{"Accept":"application...
Possibly unhandled rejection: {"data":{"message":"User is NOT Logged in | Authenticated"},"status":401,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://server1.fonoimport.com...
$compile:ctreq: Controller 'mdSelectMenu', required by directive 'mdOption', can't be found!
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://terrestre.logitracs.com/api/rawdata?vids=3864&fields=%24basic%2Chas_ph...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://pegasus1.pegasusgateway.com/api/m2m/wireless/v1/Sims/DE07e377fc4069678...
Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://gps.geoaustralchile.cl/api/apps/pegasus2.0","headers":{"Accept":"appli...
/api/vehicles?ids=id1,id2,id3&select=info,name,device:latest
Hello community. I am new to the pegasus platform. I have setup "live communication" with socket.io but I cannot get the socket.on('events', function)
is not called.
This is a node.js
application.
So basically from the documentation I setup a socket:
...
const socket = io('https://live.pegasusgateway.com/socket');
...
socket.emit('authenticate', credentials); // authentication is successful
Then upon successful authentication I subscribe to vehicle-events
event. (the subscription is also successful because I can see from the _update
handler the id of my asset is returned).
Now I go to my mobile device, I have downloaded and installed the Taurus app and my mobile is registered as an asset in the platform (id = 65). When I emit a "SOS message" for the sake of testing, my events
handler is not called:
socket.on('events', function(envelope) {
console.log(envelope); // this is never called
});
Thank you for any suggestion and any insight on what I am doing wrong or what I have forgot.