Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting userinfo fails with SocketTimeout #43

Open
SailReal opened this issue Dec 7, 2023 · 0 comments
Open

Getting userinfo fails with SocketTimeout #43

SailReal opened this issue Dec 7, 2023 · 0 comments

Comments

@SailReal
Copy link

SailReal commented Dec 7, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant