Skip to content

Getting userinfo fails with SocketTimeout #43

@SailReal

Description

@SailReal

When executing apiClient.userInfo.execute().email() the request against https://eapi71.pcloud.com/userinfo times out:

D	20231207132053.429	OkHttp	--> GET https://eapi71.pcloud.com/userinfo http/1.1 (unknown length)
D	20231207132053.429	OkHttp	User-Agent: pCloud SDK Java unspecified
D	20231207132053.429	OkHttp	--> END GET
D	20231207132057.611	OkHttp	<-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to eapi71.pcloud.com/45.131.244.145 (port 443) from /192.168.178.168 (port 39604) after 60000ms: isConnected failed: ETIMEDOUT (Connection timed out)
D	20231207132057.649	ExceptionHandler	Unexpected error
org.cryptomator.domain.exception.NetworkConnectionException: org.cryptomator.domain.exception.FatalBackendException: java.net.SocketTimeoutException: failed to connect to eapi71.pcloud.com/45.131.244.145 (port 443) from /192.168.178.168 (port 39604) after 60000ms: isConnected failed: ETIMEDOUT (Connection timed out)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository.throwConnectionErrorIfRequired(PCloudContentRepository.kt:33)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository.throwWrappedIfRequired(PCloudContentRepository.kt:26)
	...
Caused by: org.cryptomator.domain.exception.FatalBackendException: java.net.SocketTimeoutException: failed to connect to eapi71.pcloud.com/45.131.244.145 (port 443) from /192.168.178.168 (port 39604) after 60000ms: isConnected failed: ETIMEDOUT (Connection timed out)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository$Intercepted.checkAuthenticationAndRetrieveCurrentAccount(PCloudContentRepository.kt:169)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository$Intercepted.checkAuthenticationAndRetrieveCurrentAccount(PCloudContentRepository.kt:48)
	at org.cryptomator.data.cloud.InterceptingCloudContentRepository.checkAuthenticationAndRetrieveCurrentAccount(InterceptingCloudContentRepository.kt:194)
	... 13 more
Caused by: java.net.SocketTimeoutException: failed to connect to eapi71.pcloud.com/45.131.244.145 (port 443) from /192.168.178.168 (port 39604) after 60000ms: isConnected failed: ETIMEDOUT (Connection timed out)
	at libcore.io.IoBridge.isConnected(IoBridge.java:343)
	at libcore.io.IoBridge.connectErrno(IoBridge.java:237)
	at libcore.io.IoBridge.connect(IoBridge.java:179)
	at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
	at java.net.Socket.connect(Socket.java:646)
	at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
	at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
	at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
	at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
	at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.getResponseLoggingExceptions(HttpLoggingInterceptor.kt:51)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.getAndLogResponse(HttpLoggingInterceptor.kt:42)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.proceedWithLogging(HttpLoggingInterceptor.kt:28)
	at org.cryptomator.data.cloud.okhttplogging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:18)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.pcloud.sdk.internal.AccessTokenAuthenticator.intercept(AccessTokenAuthenticator.java:50)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.pcloud.sdk.internal.GlobalRequestInterceptor.intercept(GlobalRequestInterceptor.java:46)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at com.pcloud.sdk.internal.OkHttpCall.execute(OkHttpCall.java:42)
	at org.cryptomator.data.cloud.pcloud.PCloudImpl.currentAccount(PCloudImpl.kt:365)
	at org.cryptomator.data.cloud.pcloud.PCloudContentRepository$Intercepted.checkAuthenticationAndRetrieveCurrentAccount(PCloudContentRepository.kt:167)
	... 15 more
Caused by: android.system.ErrnoException: isConnected failed: ETIMEDOUT (Connection timed out)
	at libcore.io.IoBridge.isConnected(IoBridge.java:334)
	... 52 more

ErrorCode: 817U:4GDO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions