gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

websocket: invalid json #73

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by bolerguo Thursday Oct 17, 2013 at 09:32 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/168


I follow the "Getting Started" in http://fnordmetric.io/documentation/classic_index/ but I encounter the issue "websocket: invalid json" all the time when I open the http://192.168.xx.xx:4242 .

I try to print some debug info in websocket.rb and I see ==>

172.16.154.171 - - [17/Oct/2013 17:29:25] "GET /img/loader_white.gif HTTP/1.1" 304 - 0.0006 172.16.154.171 - - [17/Oct/2013 17:29:26] "GET /img/head.png HTTP/1.1" 304 - 0.0006 {"type":"discover_request","namespace":"myapp"} {"type":"gauge_list_request","namespace":"myapp"} 172.16.154.171 - - [17/Oct/2013 17:29:26] "GET /img/navbar.png HTTP/1.1" 304 - 0.0009 172.16.154.171 - - [17/Oct/2013 17:29:26] "GET /img/navbar_btn.png HTTP/1.1" 304 - 0.0006 172.16.154.171 - - [17/Oct/2013 17:29:30] "GET /myapp/dashboard/Sales HTTP/1.1" 200 417 0.0024 {"type":"widget_request","klass":"generic","gauges":["sales_per_minute"],"cmd":"values_at","tick":10,"since":1382001880,"until":1382002180,"widget_key":"salesperminute","namespace":"myapp"}¬­2@Ê ==websocket: invalid json {"type":"discover_request","namespace":"myapp"} {"type":"widget_request","klass":"generic","gauges":["sales_per_minute"],"cmd":"values_at","tick":10,"since":1382001884,"until":1382002184,"widget_key":"salesperminute","namespace":"myapp"}5¢I ==websocket: invalid json {"type":"discover_request","namespace":"myapp"}

this is my gem list => activesupport (3.2.15) addressable (2.3.5) bigdecimal (1.2.0) daemons (1.1.9) em-hiredis (0.2.1) em-websocket (0.3.6) eventmachine (1.0.3) fnordmetric (1.2.9) haml (4.0.3) hiredis (0.4.5) i18n (0.6.5) io-console (0.4.2) json (1.7.7) minitest (4.3.2) multi_json (1.8.2) psych (2.0.0) rack (1.5.2) rack-protection (1.5.0) rack-test (0.6.2) rake (0.9.6) rdoc (4.0.0) redis (3.0.5) sinatra (1.4.3) test-unit (2.0.0.0) thin (1.6.0) tilt (1.4.1) websocket-rack (0.4.0) yajl-ruby (1.1.0)

is there soemthing wrong ??