3

my network request fail with this error recvfrom failed: ECONNRESET (Connection reset by peer)

according to this it seems related to keep-alive Getting "SocketException : Connection reset by peer" in Android

But I can't set this on apisauce. It looks like apisauce uses axios internally. On axios this line seems setting the keep-alive httpAgent: new http.Agent({ keepAlive: true }) https://github.com/mzabriskie/axios#request-config

But what is http? and where should i import it. Or is there any other thing I am missing ?

recvfrom failed: ECONNRESET (Connection reset by peer)

Community
  • 1
  • 1
matar
  • 137
  • 1
  • 12

0 Answers0