Network Error or Client network socket disconnected before secure TLS connection was established

I have workflow apis enabled and I keep on getting this error from time to time in post man or my react native app.

I have configured my domain and everything seems to work fine when I access the website

But with the API I get this error very frequently.