AnalogJ / scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
MIT License
4.71k stars 154 forks source link

`first path segment in URL cannot contain colon` with SMTP notifier #658

Open poperigby opened 1 week ago

poperigby commented 1 week ago

I've set my environment variable for configuration like this:

SCRUTINY_NOTIFY_URLS=["smtp://apikey:AA.AAAAAAA-AAAAAAAAAAAAAA.AAAAAAAAAAAAA_AAAAAAAAAAAAAAAAAA_AAAAAAAAAA@smtp.sendgrid.net:587/?from=admin@haddock.cc&to=example@example.com"]

and it's failing with this error when I run curl -X POST http://localhost:8080/api/health/notify:

{"errors":["error initializing router services: parse \"[\\\"smtp://apikey:AA.AAAAAAA-AAAAAAAAAAAAAA.AAAAAAAAAAAAA_AAAAAAAAAAAAAAAAAA_AAAAAAAAAA@smtp.sendgrid.net:587/?from=admin@haddock.cc\u0026to=example@example.com\\\"]\": first path segment in URL cannot contain colon"],"success":false}