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

avolkmann

03/18/2019, 9:26 AM
Has anyone experienced this:
Copy code
2019-03-18 10:25:09,867 [nettyCallPool-4-3] INFO  ktor.application - 401 Unauthorized: POST - /match
2019-03-18 10:25:10,128 [nettyCallPool-4-4] INFO  ktor.application - 200 OK: POST - /match
On call, the server first logs 401, then 200
r

ribesg

03/18/2019, 9:32 AM
These are two different calls
a

avolkmann

03/18/2019, 9:32 AM
I am only making one call from IntelliJ http scratch
also tried with ktor client
r

ribesg

03/18/2019, 9:33 AM
That’s also usually what I see on server logs when a JWT token is expired but the refresh token is ok: make a request to an API, receive a 401 stating the JWT token is expired, call an Auth API to refresh the token, then retry the call. It’s maybe not related but I recognize the pattern
a

avolkmann

03/18/2019, 9:34 AM
there are no tokens here, I use basic auth.
ok it works from postman
only 1 call here