typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
400 stars 74 forks source link

Timeout with Node Version <= 16 #118

Open focafull opened 2 years ago

focafull commented 2 years ago

Description

I set up my own self hosted typesense instance on a vps. Now when I use typesense-js with node version 16 or less I will always get a timeout. If I use Node 17 everything works fine. I guess it has to do something with my server setup or dns setup, since everything works fine when I start a local docker container. When I check the health endpoint I can curl it just fine. Does anyone else had this issue and knows what to do?

Enragedsaturday commented 2 years ago

I had all kinds of nonsense trying to set up a self hosted instance on a vps. Changing the port in the config file to port 80 and the same in the client fixed the issues for me.

lantien commented 2 years ago

@Enragedsaturday you are right, the only solution i could find was to set the config on port 80, but in order to worker you need to NOT specify the port.