Dealing with Timeout Issues with Typesense in Algolia Plugin
TLDR Prime encounters timeout while making a typesense request inside a custom algolia autocomplete plugin. Though recommended solutions were tried, the issue wasn't fully resolved.
Sep 25, 2023 (2 months ago)
Prime
08:26 AMJack
11:22 AMJason
01:12 PMPrime
02:02 PMPrime
02:04 PM-H "Accept: application/json, text/plain, /" ^
-H "Referer: http://localhost:1234/" ^
-H "X-TYPESENSE-API-KEY: MY_API_KEY" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" ^
--compressed
Prime
02:08 PMJason
03:50 PMPrime
03:54 PMJason
03:57 PMPrime
04:22 PMPrime
05:52 PMJason
06:09 PMPrime
06:12 PMSep 26, 2023 (2 months ago)
Prime
07:02 AMJason
12:17 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Debugging "ECONNABORTED Timeout" Issue in Typesense Configuration
GM encountered an "ECONNABORTED timeout" error using their company account with their typesense configuration. Jason is assisting in troubleshooting, suspecting that environment variables might not be set correctly.
Mobile Autocomplete Issue in Web Development
Prime is experiencing a problem with the autocomplete feature on mobile view. He reached out to both Kishore Nallan and Jason for assistance. Multiple solutions were suggested such as refraining from triggering requests to Typesense for empty queries, but the issue persists.
Network Errors and Duplicate Requests in Typesense
Ethan and Rushil were experiencing more than 300 network errors and duplicate requests from Typesense. After rigorous troubleshooting, Jason identified the issue as an Instantsearch-induced multiple re-rendering and implemented a fix. Multiple requests reduced, but networking errors persisted, suggested to be due to client-side internet connectivity.
TypesenseInstantsearchAdapter and Algolia Query
Jordan had issues with utilizing Algolia's helper method after creating the TypesenseInstantsearchAdapter. Jason clarified that this adapter is unnecessary with Autocomplete.js. The correct approach is to use the typesense-js library directly.
Troubleshooting Write Timeouts in Typesense with Large CSVs
Agustin had issues with Typesense getting write timeouts while loading large CSV files. Kishore Nallan suggested chunking data or converting to JSONL before loading. Through troubleshooting, they identified a possible network problem at AWS and found a workaround.