Beno Rudolf
02/19/2025, 6:59 PMBeno Rudolf
02/19/2025, 6:59 PM{ok: true}
.
I've got s simple node script that uses the typesense js client. I was able to create a new collection with about ~10 fields. All of the client methods work e.g. create collection, create doc etc.
However, when I try to run a search I get a connect ECONNREFUSED 127.0.0.1:8108
error. Every time I try to run the search a new line is added to the typesense logs as well: E20250219 19:49:01.684290 6376365 raft_server.h:62] Peer refresh failed, error: Doing another configuration change
. The collection had a single document and it errored. I truncated the collection and now has zero documents and the error still occurs.
Any advice on what I can try to fix this or get more info? All help is greatly appreciated ๐๐ปJason Bosco
02/19/2025, 8:23 PMBeno Rudolf
02/20/2025, 7:55 AM### Install and run typesense via Homebrew (Mac)
brew install typesense/tap/typesense-server
brew services start typesense-server ### running typesense v28
### Create a test collection
curl --request POST \
--url <http://127.0.0.1:8108/collections> \
--header 'content-type: application/json' \
--header 'x-typesense-api-key: xyz' \
--data '{
"name": "demo",
"fields": [
{
"name": "title",
"type": "string"
}
]
}'
### Try to do a search (expecting to return empty data)
curl --request GET \
--url '<http://127.0.0.1:8108/collections/test2/documents/search?q=london&query_by=title>' \
--header 'x-typesense-api-key: xyz'
Beno Rudolf
02/20/2025, 7:55 AMcurl: (52) Empty reply from server
Fanis Tharropoulos
02/20/2025, 8:00 AMtest2
isn't the name of the collection, it's demo
Beno Rudolf
02/20/2025, 8:21 AM<http://127.0.0.1:8108/collections/demo/documents/search?q=london&query_by=title>
Fanis Tharropoulos
02/20/2025, 3:55 PMJason Bosco
02/20/2025, 10:41 PMJason Bosco
02/20/2025, 10:41 PMBeno Rudolf
02/21/2025, 7:50 AM