Troubleshooting 404 Error on Analytic Rule Creation in Typesense Cloud
TLDR Raz was getting a 404 error while creating an analytic rule in Typesense Cloud. Jason helped him to resolve the issue by suggesting an upgrade to the cluster version and flushing the DNS cache.
2
1
Oct 19, 2023 (1 month ago)
Raz
03:23 PM{ "message": "Not Found"}
. I'm sure that the destination and source collections that I'm sending exist on the cloud. I'm sending popular_queries
for the name and type. can you help me to understand why I'm getting 404
, please? when do you return 404 for the POST url/analytics/rules
endpoint? Thanks.Raz
04:07 PMOn Typesense Cloud
We automatically set --enable-search-analytics=true and --analytics-flush-interval=300 (every 5 minutes) in Typesense Cloud (more context in the section above).
Raz
04:08 PMJason
04:21 PMJason
04:21 PMRaz
04:21 PMRaz
04:21 PMcurl -k "https://313asdfasfa31241.typesense.net/analytics/rules/" \
-X POST \
-H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: " \
-d '{
"name": "popular_queries",
"type": "popular_queries",
"params": {
"source": {
"collections": ["products_v6"]
},
"destination": {
"collection": "products_analytics_v1"
},
"limit": 1000
}
}'
Jason
04:23 PM0.24.0
which doesn't have the analytics feature.You want to upgrade to
v0.25.2.rc6
(Cluster Configuration > Modify). Could you do that and try again?Jason
04:35 PMRaz
04:35 PMRaz
04:35 PMJason
04:36 PMRaz
04:36 PMRaz
04:36 PM1
Raz
04:45 PMError (Typesense::Error::HTTPStatus0Error)
. maybe it's something wrong with the ruby client. I'll create the rule manuallyJason
04:45 PMJason
04:45 PMRaz
04:53 PMRaz
04:53 PM1
Raz
05:05 PMRaz
05:05 PMJason
05:17 PMRaz
05:21 PM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Query Suggestions for Search Feature on B2B eCommerce Site
arif needed guidance on implementing query suggestions for a B2B eCommerce website. Jason suggested using Typesense's native search query tracking. After some setup and discussion about delays, it was confirmed the system was working correctly.
Resolving Typesense Analytics "top_queries" Collection Issue
Zain faced issues with typesense analytics and an empty "top_queries" collection. Jason and Kishore Nallan assisted in troubleshooting, identified a bug, and suggested a fix in `0.25.0.rc66`. The fix worked for Zain.
Troubleshooting Typesense API Analytics Query Suggestions
Md was confused about implementing Typesense's Analytics Query Suggestions and experienced issues with collections returning no hits. Assistance from Kishore Nallan eventually led to the identification that analytics had to be enabled. They also discussed tracking duplicate and empty queries, resulting in Md creating a Github issue.
Typesense Capabilities and Troubleshooting Queries
A had issues with refinement lists and analytics in Typesense. Jason provided a possible solution and recommended the analytics widget. They clarified import size limits and helped identify a filter issue in A's query. Upgrade options are in Typesense's roadmap.
Optimizing Typesense Implementation for Large Collections
Oskar faced performance issues with his document collection in Typesense due to filter additions. Jason suggested trying a newer Typesense build and potentially partitioning the data into country-wise collections. They also discussed reducing network latency with CDN solutions.