slanatech / swagger-stats

API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
https://swaggerstats.io/
MIT License
900 stars 139 forks source link

Elasticsearch - Crash when elasticsearch's credentials are given #121

Closed lafittg closed 3 years ago

lafittg commented 3 years ago

Hello, An error slipped when deploying the latest version (0.95.18) In initTemplate of the swsElasticEmitter, (when given) the elastic auth is set on a null variable

UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'auth' of null at swsElasticEmitter.initTemplate

lafittg commented 3 years ago

I've created a PR to fix the issue here #122

Tomas2D commented 3 years ago

Could you please release a new version with this fix included?

sv2 commented 3 years ago

Released v0.95.19 Thanks !