#community-help

Issues with Firebase Typesense Extension in Local Emulator

TLDR vajahath encountered issues with the Firebase Typesense Extension concerning host:port configuration and function timeout. Kishore Nallan clarified they should be separate, and Jason provided a guide to use the emulator with the extension.

Powered by Struct AI
Jun 11, 2022 (15 months ago)
vajahath
Photo of md5-dadf613077495f8c321f39209bedb7b3
vajahath
07:58 AM
Hi you guys doing great work!
I'm trying to use the Firebase Typesense Extension and running into a few glitches.
1. the extension seem not respecting the configured host:port (I'm trying this in local firebase emulator v11.0.1, extension version 0.3.0)
2. default retry interval seem 120 sec. But the function instance will timeout in 60 sec.
08:06
vajahath
08:06 AM
(also it'd be nice to refine logs and loglevels a little bit.)
08:51
vajahath
08:51 AM
I checked this up a little. Found that I'm not setting TYPESENSE_PORT nor the firebase interactive cli installation prompt asked me to add port. It only asked me to provide "host" and I gave it localhost:8108 .
https://github.com/typesense/firestore-typesense-search/blob/28ac6041156a9da4421c1713650371708c897251/functions/src/config.js#L10-L11
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:57 AM
Host and port have to be provided separately. Is there an example anywhere which shows the host being provided with host:port format?
vajahath
Photo of md5-dadf613077495f8c321f39209bedb7b3
vajahath
09:01 AM
Not that I can remember. But I installed this extension by running
firebase ext:install typesense/firestore-typesense-search

and it never asked me to provide port. So I naturally added it in the host:port format.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:24 PM
Here's how to use the emulator with the extension: https://github.com/typesense/firestore-typesense-search#run-emulator