Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETEing a non-existent collection crashes the server #8

Closed
jasonbosco opened this issue Jan 4, 2018 · 3 comments
Closed

DELETEing a non-existent collection crashes the server #8

jasonbosco opened this issue Jan 4, 2018 · 3 comments
Assignees
Labels

Comments

@jasonbosco
Copy link
Member

jasonbosco commented Jan 4, 2018

$ curl -X DELETE "http://localhost:8108/collections/nonexistent" -H  "accept: application/json" -H  "X-TYPESENSE-API-KEY: abcd" -sv
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8108 (#0)
> DELETE /collections/nonexistent HTTP/1.1
> Host: localhost:8108
> User-Agent: curl/7.54.0
> accept: application/json
> X-TYPESENSE-API-KEY: abcd
>
* Empty reply from server
* Connection #0 to host localhost left intact
$ docker run -p 8108:8108  -it -v/tmp/typesense-data/:/data -it typesense/typesense:0.8-api-changes --data-dir /data --api-key=abcd --listen-port 8108 --enable-cors
Typesense version nightly
Finished loading collections from disk.
Server has started. Ready to accept requests on port 8108
$

Version: 0.8-api-changes

@kishorenc
Copy link
Member

Fixed by 70a6147

@kishorenc
Copy link
Member

Docker image republished.

@jasonbosco
Copy link
Member Author

Confirming that it works now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants