weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes
https://www.weave.works/oss/scope/
Apache License 2.0
5.85k stars 709 forks source link

Improve error message in multi-tenant mode from DynamoDB #3731

Open bboreham opened 4 years ago

bboreham commented 4 years ago

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.