Skip to main content
Avalara Help Center

How do I resolve a java.net.SocketTimeoutException: Read timed out?

Overview

You are getting an error java.net.SocketTimeoutException: Read timed out 

Environment

Avalar AvaTax API

JAVA

Resolution

  • Change the read TIMEOUT allowed, typical TIMEOUT length is between 3000 - 7000 milliseconds (3 - 7 seconds)
    • You need to select a TIMEOUT that is long enough for your system to complete the call, but short enough so it does not impact workflow or customer experience if, for example, the process is stalled
    • We recommend time allowed be no more than 5 minutes (no longer than 300000)
  • You may also want to troubleshoot connection issues on your network, to ensure speed is optimized