Documentation Center

If your Content Delivery client reports a timeout while fetching the sitemap

Fetching a large sitemap can cause your Content Interaction Library (CIL), that is, your Content Delivery client, to time out. To fix this issue, you can increase the connection timeout in the Content Delivery client configuration file, cd_client_conf.xml.

Your logs may show errors like the following:
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is 
com.sdl.odata.client.api.exception.ODataClientRuntimeException: Unable to call OData service for 
"http://localhost:8081/client/v4/content.svc" URL and service query "/GetSiteMapFunctionImport(PublicationId=1430836)"
and
java.net.SocketTimeoutException: Read timed out

If you encounter these errors, your sitemap is likely too large to be processed within the allotted timeout window. To fix this on a Java/JSP website, edit cd_client_conf.xml on your client system by increasing the value of the ConnectionTimeout attribute of the ServiceConfig element. This value specifies the number of milliseconds that are allowed elapse before the Discovery Service and other Content Delivery microservices are considered unreachable. Because fetching a sitemap may take more than the default amount specified, increasing it should fix your problem.