https://kotlinlang.org logo
#ktor
Title
# ktor
m

Marcin Wiśniewski

09/19/2019, 10:29 AM
Hi, can anybody tell me why my code doesn't compile?
t

tjohnn

09/19/2019, 10:45 AM
Escape
$
in String by rreplacing it with
\$
Kotlin will attempt to read text after
$
as a variable, which does not exist in your case
m

Marcin Wiśniewski

09/19/2019, 10:50 AM
@tjohnn, I rather ask about error showed in the frame: Unresolved references.... in the line httpClient.get
t

tjohnn

09/19/2019, 10:51 AM
Oh Okay
m

Marcin Wiśniewski

09/19/2019, 10:59 AM
Do you have any idea?
I found solution. It occurs that eSearch function must be suspend fun
t

tjohnn

09/19/2019, 12:05 PM
Okay glad you found it.