Pipedrive Api endpoint Hangs

Hi,

We are using Pipedrive API using java spring boot and it was working fine since last 3 years. It is still working fine. however sometime when making request api call just hangs and not returning any response.

To avoid this hang endpoint we have implemented read-timeout for 1 minutes for Pipedrive Api endpoints. But it is not working. due to this issue our app is crashing.

I am adding few log information which i have. These api call working and hanging only few
time.

Following is a thread dump which hang when making call for deals by person id (fetchDealsByPersonId). this is not specific to only this endpoint, but it also stuck for other calls as well.

“asyncTaskScheduler3” #39 prio=5 os_prio=0 tid=0x00007fa64400e000 nid=0x1ca2 runnable [0x00007fa654eea000]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:464)
at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:68)
at sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1341)
at sun.security.ssl.SSLSocketImpl.access$300(SSLSocketImpl.java:73)
at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:957)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
- locked <0x00000000e562e270> (a java.io.BufferedInputStream)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593)
- locked <0x00000000e562e2b0> (a sun.net.www.protocol.https.DelegateHttpsURLConnection)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
- locked <0x00000000e562e2b0> (a sun.net.www.protocol.https.DelegateHttpsURLConnection)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:352)
at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:84)
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:652)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:531)
at com.leadboxer.integrations.service.PipedriveApiService.$anonfun$fetchDealsByPersonId$1(PipedriveApiService.scala:50)
at com.leadboxer.integrations.service.PipedriveApiService$$Lambda$223/81594285.apply(Unknown Source)
at com.leadboxer.integrations.service.PipedriveApiService.execute(PipedriveApiService.scala:277)
at com.leadboxer.integrations.service.PipedriveApiService.fetchDealsByPersonId(PipedriveApiService.scala:51)

Hey @Navin-Gelot
Thanks for your patience & for sharing the details. Do you still notice this issue? If so, can you provide the details in the following format?