@cryptotaxi247 / netdata-1 / commits / 3b3b2f1f9

use aclk_parse_otp_error (#12767)

Timotej S committed Apr 28, 2022 at 11:48 UTC 3b3b2f1f93d7184e8e1a392c0de7be8566bbbf70
1 file changed +2
aclk/aclk_otp.c
+2
@@ -860,6 +860,8 @@ int aclk_get_env(aclk_env_t *env, const char* aclk_hostname, int aclk_port) {
860 }
861 if (resp.http_code != 200) {
862 error("The HTTP code not 200 OK (Got %d)", resp.http_code);
863 + if (resp.payload_size)
864 + aclk_parse_otp_error(resp.payload);
865 https_req_response_free(&resp);
866 buffer_free(buf);
867 return 1;