Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Allow /debug to be always accessible regardless of readiness.

Kishore Nallan19e38681d5a7
diff --git a/src/http_server.cpp b/src/http_server.cpp
index 9d9a035a..653e7214 100644
--- a/src/http_server.cpp
+++ b/src/http_server.cpp
@@ -327,7 +327,7 @@ int HttpServer::catch_all_handler(h2o_handler_t *_h2o_handler, h2o_req_t *req) {
// Except for health check, wait for replicating state to be ready before allowing requests
// Follower or leader must have started AND data must also have been loaded
- if(path_without_query != "/health" && path_without_query != "/sequence" &&
+ if(path_without_query != "/health" && path_without_query != "/debug" && path_without_query != "/sequence" &&
!h2o_handler->http_server->get_replication_state()->is_ready()) {
std::string message = "{ \"message\": \"Not Ready\"}";
return send_response(req, 503, message);