Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send_event error #2

Open
cbradford22 opened this issue Mar 2, 2018 · 0 comments
Open

send_event error #2

cbradford22 opened this issue Mar 2, 2018 · 0 comments

Comments

@cbradford22
Copy link

I am trying to setup your application on Ubuntu. Currently my Electron device is sending the events successfully and the Google API is responding with the correct location. The map is not showing any devices available and if I try to test sending data (localhost:8080/send_event) I get the following error:

TypeError: Cannot read property 'send' of undefined
at /home/david/projects/particle-device-locator/app.js:219:14
at Layer.handle [as handle_request] (/home/david/projects/particle-device-locator/node_modules/express/lib/router/layer.js:95:5)
at next (/home/david/projects/particle-device-locator/node_modules/express/lib/router/route.js:137:13)
at restrict (/home/david/projects/particle-device-locator/app.js:182:9)
at Layer.handle [as handle_request] (/home/david/projects/particle-device-locator/node_modules/express/lib/router/layer.js:95:5)
at next (/home/david/projects/particle-device-locator/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/david/projects/particle-device-locator/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/david/projects/particle-device-locator/node_modules/express/lib/router/layer.js:95:5)
at /home/david/projects/particle-device-locator/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/david/projects/particle-device-locator/node_modules/express/lib/router/index.js:335:12)

This is the response I get on the webhook:

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Date: Fri, 02 Mar 2018 11:47:10 GMT
Vary: X-Origin
Content-Type: application/json; charset=UTF-8
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: hq=":443"; ma=2592000; quic=51303431; quic=51303339; quic=51303338; quic=51303337; quic=51303335,quic=":443"; ma=2592000; v="41,39,38,37,35"
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Transfer-Encoding: chunked

{"location":{"lat":39.043756699999996,"lng":-77.4874416},"accuracy":3439}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant