weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes

Home Page:https://www.weave.works/oss/scope/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve error message in multi-tenant mode from DynamoDB

bboreham opened this issue · comments

We got these messages:

<app> ERRO: 2019/12/04 10:36:06.456145 Error 500: NoCredentialProviders: no valid providers in chain
<app> WARN: 2019/12/04 10:36:06.456209 GET /api/probes?sparse (500) 2m9.249389377s Response: "\"NoCredentialProviders: no valid providers in chain\"false" ws: false; ...

and it took a while to figure out it was AWS credentials where the problem lay.
Also we shouldn't send that back to the caller - it should be a more opaque "internal error" type of message.