Forum Discussion

vmalla's avatar
vmalla
Adept
7 years ago

Lithium Users Endpoint Failing

Hi,

I'm trying to pull all the users in our community through Oauth route.

http://community.<communityname>.com/restapi/vc/users

There are total of 18500 users in our community. I'm getting below error.

Can anybody help me out?

 

Caused by: org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service.
at org.scribe.model.Request.send(Request.java:66)
at org.scribe.model.OAuthRequest.send(OAuthRequest.java:12)
at com.jivesoftware.migration.extract.lithium.core.LithiumConnection.request(LithiumConnection.java:176)
at com.jivesoftware.migration.extract.lithium.core.LithiumConnection.get(LithiumConnection.java:210)
at com.jivesoftware.migration.extract.lithium.core.ConfigurableLithiumClient.getResult(ConfigurableLithiumClient.java:50)
... 7 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at org.scribe.model.Response.<init>(Response.java:28)
at org.scribe.model.Request.doSend(Request.java:106)
at org.scribe.model.Request.send(Request.java:62)
... 11 more

 

3 Replies

  • vmalla- This is because of timeout issue. You are making too many calls. You can use API v2 which can give you all the user data using a single call which you are getting with multiples calls.