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

gregorbg

04/01/2019, 1:15 PM
When (accidentally) using the wrong username/password for
BasicAuth
in the
io.ktor:ktor-client-auth
plugin, the exception that gets thrown is a
SendCountExceedException
because the engine just tries sending again and again until the treshold is reached/surpassed. How can I change this behaviour so that upon encountering a
401
response code a more "proper" error (along the lines of "AuthenticationFailedException") is thrown?
👀 1
e

e5l

04/01/2019, 1:32 PM
Hi, @gregorbg. Could you file an issue?
g

gregorbg

04/01/2019, 1:41 PM
Sure thing! :)
4 Views