freshworkstudio / gps-google-maps-socket-io

GPS Google Maps Socket.io Demo App
MIT License
21 stars 25 forks source link

Console log errors #2

Open invaderb opened 7 years ago

invaderb commented 7 years ago

Greetings, I've been playing around with the demo and have it up and running however I'm wondering if anyone else is seeing a couple errors I am getting in the console or know how to resolve them.

main.js:70 Uncaught TypeError: Cannot read property 'uid' of undefined at checkIfDeviceExists (main.js:70) at n. (main.js:82) at n.emit (universalModuleDefinition:2) at n.emit (universalModuleDefinition:3) at n.emitAll (universalModuleDefinition:1) at n.onping (universalModuleDefinition:1) at n. (universalModuleDefinition:3) at n.emit (universalModuleDefinition:2) at n. (universalModuleDefinition:2) at n.r (universalModuleDefinition:2)

and when I click on the marker on the map getting Uncaught TypeError: Cannot read property 'length' of undefined at Function.each (jquery.min.js:2) at displayData (main.js:20) at .Ne. (main.js:55) at Object..x.trigger (js?key=AIzaSyBHVJcV0apLoTInbKmW80suUGKCbnXbPR4:102) at IT.handleEvent (marker.js:40) at .lg.xg (map.js:31) at Vx..k.$d (map.js:44) at Vx..k.Gi (map.js:44) at Object..x.trigger (js?key=AIzaSyBHVJcV0apLoTInbKmW80suUGKCbnXbPR4:102) at Qt. (common.js:121)

When I console log the data it is coming back as undefined even though I do see that it's getting data from the emulator app.

invaderb commented 7 years ago

Ok I figured out the reason why I'm getting the 'length' of undefined it's due to clicking the marker on the map before getting any ping data.

However I am still getting the main.js:70 Uncaught TypeError: Cannot read property 'uid' of undefined

and a new one popped up main.js:86 Uncaught TypeError: Cannot read property 'getPath' of null at n. (main.js:86)

Any help figuring out why these console log error are popping up would be greatly appreciated.