Hi there,
After recent upgrade from 2.0.5 to 4.4 my python automation broke and I am getting an error while trying to login using zabbix_api module.
unable to decode. returned string: b'<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>\n\t\t<meta charset="utf-8" />\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\n\t\t<meta name="Author" content="Zabbix SIA" />\n\t\t<title>ZabbixRV: Zabbix</title>\n\t\t<link rel="icon" href="favicon.ico">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="76x76" href="assets/img/apple-touch-icon-76x76-precomposed.png">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="120x120" href="assets/img/apple-touch-icon-120x120-precomposed.png">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="152x152" href="assets/img/apple-touch-icon-152x152-precomposed.png">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="180x180" href="assets/img/apple-touch-icon-180x180-precomposed.png">\n\t\t<link rel="icon" sizes="192x192" href="assets/img/touch-icon-192x192.png">\n\t\t<meta name="csrf-token" content=""/>\n\t\t<meta name="msapplication-TileImage" content="assets/img/ms-tile-144x144.png">\n\t\t<meta name="msapplication-TileColor" content="#d40000">\n\t\t<meta name="msapplication-config" content="none"/>\n<link rel="stylesheet" type="text/css" href="assets/styles/blue-theme.css" />\n<style type="text/css">.na-bg, .na-bg input[type="radio"]:checked + label, .na-bg:before, .flh-na-bg, .status-na-bg { background-color: #97AAB3 }\n.info-bg, .info-bg input[type="radio"]:checked + label, .info-bg:before, .flh-info-bg, .status-info-bg { background-color: #7499FF }\n.warning-bg, .warning-bg input[type="radio"]:checked + label, .warning-bg:before, .flh-warning-bg, .status-warning-bg { background-color: #FFC859 }\n.average-bg, .average-bg input[type="radio"]:checked + label, .average-bg:before, .flh-average-bg, .status-average-bg { background-color: #FFA059 }\n.high-bg, .high-bg input[type="radio"]:checked + label, .high-bg:before, .flh-high-bg, .status-high-bg { background-color: #E97659 }\n.disaster-bg, .disaster-bg input[type="radio"]:checked + label, .disaster-bg:before, .flh-disaster-bg, .status-disaster-bg { background-color: #E45959 }\n\n</style><script>var PHP_TZ_OFFSET = 0,PHP_ZBX_FULL_DATE_TIME = "Y-m-d H:i:s";</script><script src="js/browsers.js"></script>\n</head>\n<body lang="en">\n<output class="msg-global-footer msg-warning" id="msg-global-footer"></output>\n<main><div class="server-name">ZabbixRV</div><div class="signin-container"><div class="signin-logo"></div><form method="post" action="index.php" accept-charset="utf-8" aria-label="Sign in"><ul><li><label for="name">Username</label><input type="text" id="name" name="name" value="" maxlength="255" autofocus="autofocus"></li><li><label for="password">Password</label><input type="password" id="password" name="password" value="" maxlength="255"></li><li><input type="checkbox" id="autologin" name="autologin" value="1" class="checkbox-radio" checked="checked"><label for="autologin"><span></span>Remember me for 30 days</label></li><li><button type="submit" id="enter" name="enter" value="Sign in">Sign in</button></li></ul></form></div><div class="signin-links"><a target="_blank" class="grey link-alt" href="https://www.zabbix.com/documentation/4.4/">Help</a> \xe2\x80\xa2 <a target="_blank" class="grey link-alt" href="https://www.zabbix.com/support">Support</a></div></main><footer role="contentinfo">© 2001–2020, <a class="grey link-alt" target="_blank" href="https://www.zabbix.com/">Zabbix SIA</a></footer></body>\n'
After recent upgrade from 2.0.5 to 4.4 my python automation broke and I am getting an error while trying to login using zabbix_api module.
unable to decode. returned string: b'<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>\n\t\t<meta charset="utf-8" />\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\n\t\t<meta name="Author" content="Zabbix SIA" />\n\t\t<title>ZabbixRV: Zabbix</title>\n\t\t<link rel="icon" href="favicon.ico">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="76x76" href="assets/img/apple-touch-icon-76x76-precomposed.png">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="120x120" href="assets/img/apple-touch-icon-120x120-precomposed.png">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="152x152" href="assets/img/apple-touch-icon-152x152-precomposed.png">\n\t\t<link rel="apple-touch-icon-precomposed" sizes="180x180" href="assets/img/apple-touch-icon-180x180-precomposed.png">\n\t\t<link rel="icon" sizes="192x192" href="assets/img/touch-icon-192x192.png">\n\t\t<meta name="csrf-token" content=""/>\n\t\t<meta name="msapplication-TileImage" content="assets/img/ms-tile-144x144.png">\n\t\t<meta name="msapplication-TileColor" content="#d40000">\n\t\t<meta name="msapplication-config" content="none"/>\n<link rel="stylesheet" type="text/css" href="assets/styles/blue-theme.css" />\n<style type="text/css">.na-bg, .na-bg input[type="radio"]:checked + label, .na-bg:before, .flh-na-bg, .status-na-bg { background-color: #97AAB3 }\n.info-bg, .info-bg input[type="radio"]:checked + label, .info-bg:before, .flh-info-bg, .status-info-bg { background-color: #7499FF }\n.warning-bg, .warning-bg input[type="radio"]:checked + label, .warning-bg:before, .flh-warning-bg, .status-warning-bg { background-color: #FFC859 }\n.average-bg, .average-bg input[type="radio"]:checked + label, .average-bg:before, .flh-average-bg, .status-average-bg { background-color: #FFA059 }\n.high-bg, .high-bg input[type="radio"]:checked + label, .high-bg:before, .flh-high-bg, .status-high-bg { background-color: #E97659 }\n.disaster-bg, .disaster-bg input[type="radio"]:checked + label, .disaster-bg:before, .flh-disaster-bg, .status-disaster-bg { background-color: #E45959 }\n\n</style><script>var PHP_TZ_OFFSET = 0,PHP_ZBX_FULL_DATE_TIME = "Y-m-d H:i:s";</script><script src="js/browsers.js"></script>\n</head>\n<body lang="en">\n<output class="msg-global-footer msg-warning" id="msg-global-footer"></output>\n<main><div class="server-name">ZabbixRV</div><div class="signin-container"><div class="signin-logo"></div><form method="post" action="index.php" accept-charset="utf-8" aria-label="Sign in"><ul><li><label for="name">Username</label><input type="text" id="name" name="name" value="" maxlength="255" autofocus="autofocus"></li><li><label for="password">Password</label><input type="password" id="password" name="password" value="" maxlength="255"></li><li><input type="checkbox" id="autologin" name="autologin" value="1" class="checkbox-radio" checked="checked"><label for="autologin"><span></span>Remember me for 30 days</label></li><li><button type="submit" id="enter" name="enter" value="Sign in">Sign in</button></li></ul></form></div><div class="signin-links"><a target="_blank" class="grey link-alt" href="https://www.zabbix.com/documentation/4.4/">Help</a> \xe2\x80\xa2 <a target="_blank" class="grey link-alt" href="https://www.zabbix.com/support">Support</a></div></main><footer role="contentinfo">© 2001–2020, <a class="grey link-alt" target="_blank" href="https://www.zabbix.com/">Zabbix SIA</a></footer></body>\n'