I’m using Ktor for get a simple file. This unit te...
# ktor
d
I’m using Ktor for get a simple file. This unit test runs successfully 10/10
Copy code
fun `playlist realTest`() {
        val source = ParsersImpl()

        runBlocking {
            source.readFrom(
                    Playlist("<https://sourcetv.info/dl/01/it29.m3u>", SourceFile.Type.REMOTE ),
                    onChannel = { println( it ) },
                    onGroup = { println( it ) },
                    onError = { println( "${it.reason.name} - ${it.rawChannel}" ) }
            )
        }
    }
The http call resides here:
override suspend fun readBytes( path: String ) = client.get<ByteArray>( path )
The problem is that when I run my Android app, 9/10 gives me the following exception
✔️ 1
d
which ktor version do you use ?
d
1.1.2
d
someone said it already fixed at
1.1.3
https://github.com/ktorio/ktor/issues/866 I think it's worth to try 🙂
d
Giving a try right now
It ran at the first try 😄 That gives me hope 😛 Thanks so much!
✔️ 1