Query not working in local Echoprint server (localhost:8080/query)

197 views
Skip to first unread message

vaibhav khurana

unread,
Mar 22, 2015, 3:58:01 PM3/22/15
to echo...@googlegroups.com
I have setup my own Echoprint server, with all the prerequisites. 
I am able to successfully ingest songs using either -
 1. python ./fastingest.py -b ~/allcodes.json

Now I am having trouble in querying. 

What I am doing-
-----------------------

for one of the songs ingested, I am :-

./echoprint-codegen ~/Music/myMusic/Kiss\ With\ A\ Fist.mp3 10 30

I get this :- 
 [
{"metadata":{"artist":"Florence and The Machine", "release":"Florence and The Machine - Lungs", "title":"Kiss With A Fist", "genre":"Alternative Rock", "bitrate":128,"sample_rate":44100, "duration":124, "filename":"/Users/vaibhav/Music/myMusic/Kiss With A Fist.mp3", "samples_decoded":330750, "given_duration":30, "start_offset":10, "version":4.12, "codegen_time":0.049158, "decode_time":0.179580}, "code_count":930, "code":"eJy...}]

Having trouble with:-
----------------------------

Querying now.
How do i query.

If i do this (see below)


then, I get 


<type 'exceptions.KeyError'> at /query

'Missing a result, unusable response in 1.1.10'


and If i :-


with Posting below Json 

[
{"metadata":{"artist":"Florence and The Machine", "release":"Florence and The Machine - Lungs", "title":"Kiss With A Fist", "genre":"Alternative Rock", "bitrate":128,"sample_rate":44100, "duration":124, "filename":"/Users/vaibhav/Music/myMusic/Kiss With A Fist.mp3", "samples_decoded":330750, "given_duration":30, "start_offset":10, "version":4.12, "codegen_time":0.049158, "decode_time":0.179580}, "code_count":930, "code":"eJy....}
]

the I get this:-

{"total_time": 0, "score": 0, "ok": true, "query": "", "message": "query code length is too small", "qtime": 0, "match": false, "track_id": null}



HOW DO I QUERY ??? please help

Raluca Ene

unread,
Mar 25, 2015, 9:49:00 AM3/25/15
to echo...@googlegroups.com
Hi, vaibhav khurana, I don`t have an answer for you, but a question. Can you please help me with the ingestion process? 

José Carlos Almeida

unread,
Aug 21, 2015, 4:00:35 PM8/21/15
to echoprint
Try with curl http://localhost...
Reply all
Reply to author
Forward
0 new messages