sematext / logsene-cli

Logsene Command-line Interface
http://sematext.com/logsene
Apache License 2.0
10 stars 5 forks source link

Error on search: TypeError: Cannot read property 'defaultOperator' of undefined #4

Closed synox closed 7 years ago

synox commented 7 years ago

Login works, but then search does not:

{ ~ }  » logsene search                                                                       ~ 1
TypeError: Cannot read property 'defaultOperator' of undefined
    at _getQuery (D:\dev\apps\node\node_modules\logsene-cli\commands\search.js:344:44)
    at _run [as run] (D:\dev\apps\node\node_modules\logsene-cli\commands\search.js:47:44)
    at D:\dev\apps\node\node_modules\logsene-cli\node_modules\ronin\build\command.js:260:9
    at iterate (D:\dev\apps\node\node_modules\logsene-cli\node_modules\ronin\node_modules\async\lib\async.js:146:13)
    at null._onTimeout (D:\dev\apps\node\node_modules\logsene-cli\node_modules\ronin\node_modules\async\lib\async.js:157:25)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)

1.4.2 installed over npm on windows 7.

otisg commented 7 years ago

Does it work for any query? What happens if you run queries like:

otisg commented 7 years ago

Works for you now, @synox ?

synox commented 7 years ago

I have the same Problem with any query.

megastef commented 7 years ago

We just released 1.4.4 could you please run first:

sudo npm i -g  logsene-cli@1.4.4
megastef commented 7 years ago

Oh, sorry you use windows and there is no sudo:

npm i -g  logsene-cli@1.4.4
synox commented 7 years ago

bravo, it works with 1.4.4.