Network Errors and Duplicate Requests in Typesense
TLDR 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.
4
1
1
Jul 28, 2023 (2 months ago)
Ethan
02:49 AMJason
02:59 AMEthan
03:03 AMJason
03:29 AMJason
03:29 AMRushil
08:23 PMJason
09:22 PMJul 31, 2023 (2 months ago)
Rushil
09:23 PMJason
09:25 PMJason
09:27 PMRushil
09:29 PMJason
09:30 PMRushil
09:32 PMJason
09:36 PMRushil
09:37 PMJason
09:41 PMRushil
09:42 PMEthan
09:43 PM1
Ethan
09:43 PMJason
09:43 PMRushil
09:44 PMEthan
09:44 PMRushil
09:46 PMJason
09:47 PMThe typesense-instantsearch-adapter shouldn’t do this, unless it’s being somehow re-instantiated multiple times, may be due to some reactivity?
Jason
09:47 PMJason
09:50 PMEthan
09:51 PMEthan
09:52 PMJason
09:53 PMJason
09:54 PMEthan
09:55 PMJason
09:57 PMEthan
09:57 PM1
Ethan
09:59 PMJason
10:03 PMJason
10:06 PMEthan
10:06 PMJason
10:08 PMFast 3G causes 13 requests and no throttling causes 8 duplicate requests
Ethan
10:21 PMEthan
10:22 PMJason
10:23 PMEthan
10:28 PMEthan
10:28 PMJason
10:34 PMEthan
10:37 PMEthan
10:50 PMJason
10:52 PMJason
10:53 PMThis is the source-code: https://github.com/typesense/showcase-nextjs-typesense-ecommerce-store
Ethan
10:58 PMEthan
10:58 PMEthan
11:23 PMJason
11:27 PMSo I’m not sure if there’s any fixes in the adapter that can be done to solve for this.
Jason
11:28 PMRushil
11:29 PM1
Jason
11:29 PM2
Aug 01, 2023 (2 months ago)
Jason
01:32 AM2.7.1-5
of the adapter on your local machine and check if you see the issue now?Ethan
06:10 PMEthan
06:10 PMJason
06:11 PMJason
06:12 PMEthan
06:13 PM1
Aug 02, 2023 (2 months ago)
Ethan
07:19 PMJason
08:17 PMEthan
10:47 PMEthan
10:47 PMAug 03, 2023 (2 months ago)
Jason
08:30 PMEthan
10:03 PMAug 04, 2023 (2 months ago)
Jason
04:55 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
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.
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
Issues with Typesense Frontend Search Integration
Akash experienced issues integrating Typesense into their frontend search, particularly with their search box. Jason guided them to troubleshoot, eventually identifying the issue to be with react-instantsearch-dom and suggesting a downgrade to react 17, which resolved the issue.
Troubleshooting Typesense Setup and Understanding Facets and Keywords
Demitri encountered errors when exploring Typesense for the first time. Jason guided them through troubleshooting and discussed facets, keyword settings, and widget configurations. Helin shared a Python demo app and its source code to help Demitri with their project.
Debugging Search Issue with Typesense Server Caching
Jameshwart reported experiencing caching issues with typesense server, despite the server's default setting of not caching. Through troubleshooting steps with Kishore Nallan, they were able to confirm an issue with the Typesense Javascript client and resolved it by adding `cacheSearchResultsForSeconds: 0` after `apiKey` in the initialisation. Laura also participated in discussion, learning about server and client level caching.