#community-help

Typesense Cloud Connection Issues Solved in React App

TLDR Coffee experienced a post error when connecting to Typesense Cloud from a React App. Kishore Nallan suggested to check connections, then Coffee solved the issue with correct host, port, and protocol.

Powered by Struct AI
4
21mo
Solved
Join the chat
Feb 14, 2022 (21 months ago)
Coffee
Photo of md5-0a020fa5d51d6c8c3ffed274e1ee3067
Coffee
07:32 AM
Hello! Hoping this is an quick and easy one if anyone can help. Setup Typesense Cloud and have a React app. Getting POST ERR_Connection_Refused. If someone has any guidance much appreciated! Thanks
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:34 AM
👋 Are you connecting to localhost?
07:34
Kishore Nallan
07:34 AM
If you are connecting to local Typesense server, you have to enable cors with the --enable-cors flag.
Coffee
Photo of md5-0a020fa5d51d6c8c3ffed274e1ee3067
Coffee
07:35 PM
Thanks for replying... was connecting to Typesense cloud. Figured it out. Needed to use host: node key, port: 443, protocol: https.