Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Lots of timeouts when trying to login using jforex api
 Post subject: Lots of timeouts when trying to login using jforex api Post rating: 0   New post Posted: Mon 12 Mar, 2018, 18:06 

User rating: 0
Joined: Mon 29 May, 2017, 17:19
Posts: 21
Location: Germany,
Hi,

I am recently getting a lot of timeouts when trying to login using the api:

2018-03-12 18:00:23.110 ERROR AuthorizationClient - Read timed out
java.net.SocketTimeoutException: Read timed out
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at java.net.HttpURLConnection.getResponseCode(Unknown Source)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
   at com.dukascopy.auth.client.transport.http.HttpAuthTransport.makeServerRequest(HttpAuthTransport.java:80)
   at com.dukascopy.auth.client.protocol.AbstractSRPClientProtocol.performStep1(AbstractSRPClientProtocol.java:167)
   at com.dukascopy.auth.client.SRPAuthClient.step1(SRPAuthClient.java:213)
   at com.dukascopy.auth.client.SRPAuthClient.authenticate(SRPAuthClient.java:62)
   at com.dukascopy.api.impl.connect.AuthorizationClient.getAPIsAndTicketUsingLogin_SRP6(AuthorizationClient.java:915)
   at com.dukascopy.api.impl.connect.AuthorizationClient.getAPIsAndTicketUsingLogin_SRP6(AuthorizationClient.java:742)
   at com.dukascopy.api.impl.connect.DCClientImpl.authenticate(DCClientImpl.java:549)
   at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:341)
   at com.dukascopy.api.impl.connect.DCClientImpl.connect(DCClientImpl.java:331)
Caused by: java.net.SocketTimeoutException: Read timed out
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.socketRead(Unknown Source)
   at java.net.SocketInputStream.read(Unknown Source)
   at java.net.SocketInputStream.read(Unknown Source)
   at sun.security.ssl.InputRecord.readFully(Unknown Source)
   at sun.security.ssl.InputRecord.read(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
   at sun.security.ssl.AppInputStream.read(Unknown Source)
   at java.io.BufferedInputStream.fill(Unknown Source)
   at java.io.BufferedInputStream.read1(Unknown Source)
   at java.io.BufferedInputStream.read(Unknown Source)
   at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
   at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(Unknown Source)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFields(Unknown Source)
   at com.dukascopy.auth.client.transport.http.HttpAuthTransport.makeServerRequest(HttpAuthTransport.java:79)


the Api itself tries two times to login. after the second timeout it stops trying. I suspect that the demo server is overloaded with requests, and cant respond in time. I have had errors on the first one or two login attempts to the demo servers in the past, but today it is much worse - I have to try dozens of times to get onto the server. Is there a way to increase the number of automatic login attempts? What else could I do?

Thanks.


 

Jump to:  

  © 1998-2026 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com