@MarekBelisko It doesn’t look like application response error and most likely this means that the scrape request timed out.
Might be some network related issues or server slowness. If nothing in api-gateway logs than that is what I would check first. Also might be an option to try to increase scrape timeout in your test app.
Hello @MarekBelisko, context deadline exceeded means that the request timed out. This usually happens if hit the nginx (api gateway) timeout, which defaults to 60 seconds. It is quite strange it happens when you log in, though, because it is unlikely it can take so long to get back the response.
Do you know the response time, when you get back this error message?
Is your mongodb always reachable, and does DNS resolution work fine from the Mender server containers?