Open danielvion opened 2 years ago
We'll take a look when we can. We might need more details when we get round to it.
I will try my best to supply you with the needed information.
Not working for me as well. As soon as I disable SSL/TLS, I get the following error -
ERRO[6930] sending error response for /api/notifier/email: could not decode incoming JSON code=422 method=POST type=handlers url=/api/notifier/email
@danielvion your error msg has some extra information. did you enable some debug logs? how?
It looks like the server logs are identical. I also posted the browser console error message, if that's what you mean.
I see the same behaviour.
Successful POST (Disable SSl/TLS verify is disabled):
{"enabled":false,"limits":30,"method":"email","host":"smtp_hostname","username":"","password":"","port":25,"var1":"email@example.com","var2":"email2@example.com","api_key":"","success_data":null,"failure_data":null}
Failing request with "Disable SSL/TLS":
{"enabled":false,"limits":30,"method":"email","host":"smtp_hostname","username":"","password":"","port":25,"var1":"email2@example.com","var2":"email2@example.com","api_key":true,"success_data":null,"failure_data":null}
The only difference seems to be api_key: true
vs api_key: null
?
I have deployed a container using the latest statping-ng image available.
Disabling the TLS/SSL for the SMTP notifier just hang loading.
In the browser console I get the following error message:
The server outputs the following error message:
ERRO[0114] sending error response for /api/notifier/email: could not decode incoming JSON code=422 device="map[arch:amd64 num_cpu:8]" method=POST os="map[name:linux]" runtime="map[go_maxprocs:8 go_numcgocalls:1 go_numroutines:15 name:go version:go1.14.15]" type=handlers url=/api/notifier/email
The bug can also be reproduced locally. Just starting the container and trying to disable the TLS for the notifier doesn't work.