I am using Elastic Java API to write some data into elastic，but I occasionally get some error like this:
"java.net.ConnectException: Timeout connecting to [gt7-elk001.es.asia-east1.gcp.elastic-cloud.com/XX.XX.XXX.XXX:XXXX]"
X represent number
but this situation didn't appear often ， i usually get one error message like every 100 data i insert in elastic .
can someone tell me how to figure it out?
Where is your code running? On GCP? In the same region?
I am running on localhost,and its same region
If you are running it on your laptop, you might have some network connectivities issues.
I'm myself trying to run my code from a stable network and ideally I'm starting a VM in the same region, so I can rely on the network.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.