can anybody help me on this?
# community-help
s
can anybody help me on this?
k
Can you please post the full gist along with client initialisation? Typically this error means a bad API key is used. Check if key has write permissions.
s
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.24.0 --data-dir /data --api-key=Hu52dwsas2AdxdE
Have used this in my windows machine
while create=ing client I am passing abive api-key
k
I mean the full Java code
s
Untitled
typesense server logs
k
Hmm that looks fine. None of the other endpoints like health works also?
s
for health - { "ok": true }
getting response
k
Can you tell me the version of Java client used? I'm afk at the moment, will get back to you later after checking.
s
API issue is solved however while testing I found out that somehow sorting is not working..Am i using it wrong?
Untitled
Have added code and response
k
API issue is solved
What was the issue?
somehow sorting is not working
Can you elaborate what you are expecting vs what you are getting? You're sorting by
ratings_count:desc
and I see that the responses are indeed in descending order of the value of the ratings_count field.
s
Thanks Kishor, I was checking the wrong field. All issues are sesolved
👍 1