#community-help

Issues with Typesense API Key and Collection Set Up

TLDR Janick had problems with a function after installing an extension. Kishore Nallan clarified the need to create a collection in typesense, providing necessary instructions and resources.

Powered by Struct AI
9
17mo
Solved
Join the chat
Apr 06, 2022 (17 months ago)
Janick
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Janick
10:32 AM
Hello guys, I have the following problem… After installing the extension, I run the create the collection and add the backfill document, but the function fails. I’m not sure if I set up the extension correctly… Which typesense api key do I need to use?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:35 AM
Can you please verify that the collection that you are writing to is indeed created? 404 error happens when collection does not exist.
Janick
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Janick
10:37 AM
Thanks for the fast response 😄 Do you mean in firestore? yes the collection is created.
10:37
Janick
10:37 AM
Or do I need to create a collection in typesense? If so, how can I do that?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:38 AM
Yes you need to create a collection first.
Janick
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Janick
10:39 AM
Oh ok, will check this out. This was a bit confusion:
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:40 AM
Yes and that GitHub link also lists this as a pre requisite. Check number 3 point here: https://github.com/typesense/firestore-typesense-search#1-setup-prerequisites
Janick
Photo of md5-a9a351e11d64f05b41fec183816a0cda
Janick
10:41 AM
Ok perfect, Thank you 👌