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

iOS works ok, but Android app issues "Connect Timeout has Expired" message on startup and nothing loads #55

Open
Lee-Hounshell-at-MarianaTek opened this issue Sep 2, 2022 · 1 comment

Comments

@Lee-Hounshell-at-MarianaTek
Copy link

Lee-Hounshell-at-MarianaTek commented Sep 2, 2022

Increasing the connectTimeout at line 13 of AndroidHttpClient.kt does not fix it.

I see this in logcat:
2022-09-02 09:57:44.604 16529-16529/com.github.jetbrains.rssreader.androidApp V/AndroidHttpClient: REQUEST https://blog.jetbrains.com/kotlin/feed/ failed with exception: io.ktor.client.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://blog.jetbrains.com/kotlin/feed/, connect_timeout=unknown ms]
2022-09-02 09:57:44.608 16529-16529/com.github.jetbrains.rssreader.androidApp D/FeedStore: Action: Error(error=io.ktor.client.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://blog.jetbrains.com/kotlin/feed/, connect_timeout=unknown ms])

@PROGERPEN
Copy link

PROGERPEN commented Jan 11, 2023

Yep, that's true. The problem is in line isMinifyEnabled = true. You can change isMinifyEnabled to false and it'll be working.

getByName("release") {
            isMinifyEnabled = true
            signingConfig = signingConfigs.getByName("release")

            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                file("proguard-rules.pro")
            )
        }

Kotlin/kotlinx.serialization#1129 you need to create pro guard rules for serialization

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

2 participants