Project

General

Profile

Bug #34128

Fix displaying unnecessary errors when ResponseParserError occurs in API

Added by Lola Yang over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

The error message from call 'backup.s3.get_buckets' is like
```{
"msg":"result",
"id":"b3586b50-fea9-ba45-2a2d-12e2d38df41a",
"error":{
"error":22,
"type":null,
"reason":"Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\nb'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'",
"trace":{
"class":"ResponseParserError",
"frames":[ {
"filename":"/usr/local/lib/python3.6/site-packages/middlewared/main.py",
"lineno":177,
"method":"call_method",
"line":" self.send_error(message, errno.EINVAL, str(e), sys.exc_info())\n",
"argspec":[
"self",
"message"
],
"locals":{
"e":"ResponseParserError('Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\\nb\\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\\\n<html>\\\\n<head>\\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\\\n<script type=\"text/javascript\">\\\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\\\n if (document.cookie.length > 0) {\\\\n c_start = document.cookie.indexOf(c_name + \"=\");\\\\n if (c_start!=-1) {\\\\n c_start=c_start + c_name.length + 1;\\\\n c_end=document.cookie.indexOf(\";\", c_start);\\\\n\\\\n if (c_end==-1) \\\\n c_end = document.cookie.length;\\\\n\\\\n return unescape(document.cookie.substring(c_start,c_end));\\\\n }\\\\n }\\\\n return \"\";\\\\n}\\\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\\\n var exdate = new Date();\\\\n exdate.setDate(exdate.getDate()+expiredays);\\\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\\\n}\\\\nfunction getHostUri() {\\\\n var loc = document.location;\\\\n return loc.toString();\\\\n}\\\\nsetCookie(\\\\\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\\\\\', \\\\\\'12.229.62.30\\\\\\', 10);\\\\ntry { \\\\n location.reload(true); \\\\n} catch (err1) { \\\\n try { \\\\n location.reload(); \\\\n } catch (err2) { \\\\n \\\\tlocation.href = getHostUri(); \\\\n } \\\\n}\\\\n</script>\\\\n</head>\\\\n<body>\\\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\\\n</body>\\\\n</html>\\\\n\\'',)",
"message":"{'id': 'b3586b50-fea9-ba45-2a2d-12e2d38df41a', 'msg': 'method', 'method': 'backup.s3.get_buckets', 'params': [1]}",
"self":"<middlewared.main.Application object at 0x821eba240>"
}
}, {
"filename":"/usr/local/lib/python3.6/asyncio/coroutines.py",
"lineno":129,
"method":"throw",
"line":" return self.gen.throw(type, value, traceback)\n",
"argspec":[
"self",
"type",
"value",
"traceback"
],
"locals":{
"traceback":"None",
"value":"None",
"type":"ResponseParserError('Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\\nb\\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\\\n<html>\\\\n<head>\\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\\\n<script type=\"text/javascript\">\\\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\\\n if (document.cookie.length > 0) {\\\\n c_start = document.cookie.indexOf(c_name + \"=\");\\\\n if (c_start!=-1) {\\\\n c_start=c_start + c_name.length + 1;\\\\n c_end=document.cookie.indexOf(\";\", c_start);\\\\n\\\\n if (c_end==-1) \\\\n c_end = document.cookie.length;\\\\n\\\\n return unescape(document.cookie.substring(c_start,c_end));\\\\n }\\\\n }\\\\n return \"\";\\\\n}\\\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\\\n var exdate = new Date();\\\\n exdate.setDate(exdate.getDate()+expiredays);\\\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\\\n}\\\\nfunction getHostUri() {\\\\n var loc = document.location;\\\\n return loc.toString();\\\\n}\\\\nsetCookie(\\\\\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\\\\\', \\\\\\'12.229.62.30\\\\\\', 10);\\\\ntry { \\\\n location.reload(true); \\\\n} catch (err1) { \\\\n try { \\\\n location.reload(); \\\\n } catch (err2) { \\\\n \\\\tlocation.href = getHostUri(); \\\\n } \\\\n}\\\\n</script>\\\\n</head>\\\\n<body>\\\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\\\n</body>\\\\n</html>\\\\n\\'',)",
"self":"<CoroWrapper Middleware.call_method() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/main.py:1005, created at /usr/local/lib/python3.6/asyncio/coroutines.py:85>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/middlewared/main.py",
"lineno":1014,
"method":"call_method",
"line":" return await self._call(message['method'], serviceobj, methodobj, params, app=app)\n",
"argspec":[
"self",
"app",
"message"
],
"locals":{
"methodobj":"<bound method accepts.<locals>.wrap.<locals>.nf of <backup.BackupS3Service object at 0x81bfe9518>>",
"serviceobj":"<backup.BackupS3Service object at 0x81bfe9518>",
"params":"[1]",
"message":"{'id': 'b3586b50-fea9-ba45-2a2d-12e2d38df41a', 'msg': 'method', 'method': 'backup.s3.get_buckets', 'params': [1]}",
"app":"<middlewared.main.Application object at 0x821eba240>",
"self":"<middlewared.main.Middleware object at 0x80b2dd710>"
}
}, {
"filename":"/usr/local/lib/python3.6/asyncio/coroutines.py",
"lineno":129,
"method":"throw",
"line":" return self.gen.throw(type, value, traceback)\n",
"argspec":[
"self",
"type",
"value",
"traceback"
],
"locals":{
"traceback":"None",
"value":"None",
"type":"ResponseParserError('Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\\nb\\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\\\n<html>\\\\n<head>\\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\\\n<script type=\"text/javascript\">\\\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\\\n if (document.cookie.length > 0) {\\\\n c_start = document.cookie.indexOf(c_name + \"=\");\\\\n if (c_start!=-1) {\\\\n c_start=c_start + c_name.length + 1;\\\\n c_end=document.cookie.indexOf(\";\", c_start);\\\\n\\\\n if (c_end==-1) \\\\n c_end = document.cookie.length;\\\\n\\\\n return unescape(document.cookie.substring(c_start,c_end));\\\\n }\\\\n }\\\\n return \"\";\\\\n}\\\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\\\n var exdate = new Date();\\\\n exdate.setDate(exdate.getDate()+expiredays);\\\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\\\n}\\\\nfunction getHostUri() {\\\\n var loc = document.location;\\\\n return loc.toString();\\\\n}\\\\nsetCookie(\\\\\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\\\\\', \\\\\\'12.229.62.30\\\\\\', 10);\\\\ntry { \\\\n location.reload(true); \\\\n} catch (err1) { \\\\n try { \\\\n location.reload(); \\\\n } catch (err2) { \\\\n \\\\tlocation.href = getHostUri(); \\\\n } \\\\n}\\\\n</script>\\\\n</head>\\\\n<body>\\\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\\\n</body>\\\\n</html>\\\\n\\'',)",
"self":"<CoroWrapper Middleware._call() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/main.py:920, created at /usr/local/lib/python3.6/asyncio/coroutines.py:85>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/middlewared/main.py",
"lineno":953,
"method":"_call",
"line":" return await methodobj(*args)\n",
"argspec":[
"self",
"name",
"serviceobj",
"methodobj",
"params",
"app",
"pipes",
"spawn_thread"
],
"locals":{
"job":"None",
"job_options":"None",
"args":"[1]",
"spawn_thread":"True",
"pipes":"None",
"app":"<middlewared.main.Application object at 0x821eba240>",
"params":"[1]",
"methodobj":"<bound method accepts.<locals>.wrap.<locals>.nf of <backup.BackupS3Service object at 0x81bfe9518>>",
"serviceobj":"<backup.BackupS3Service object at 0x81bfe9518>",
"name":"'backup.s3.get_buckets'",
"self":"<middlewared.main.Middleware object at 0x80b2dd710>"
}
}, {
"filename":"/usr/local/lib/python3.6/asyncio/coroutines.py",
"lineno":129,
"method":"throw",
"line":" return self.gen.throw(type, value, traceback)\n",
"argspec":[
"self",
"type",
"value",
"traceback"
],
"locals":{
"traceback":"None",
"value":"None",
"type":"ResponseParserError('Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\\nb\\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\\\n<html>\\\\n<head>\\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\\\n<script type=\"text/javascript\">\\\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\\\n if (document.cookie.length > 0) {\\\\n c_start = document.cookie.indexOf(c_name + \"=\");\\\\n if (c_start!=-1) {\\\\n c_start=c_start + c_name.length + 1;\\\\n c_end=document.cookie.indexOf(\";\", c_start);\\\\n\\\\n if (c_end==-1) \\\\n c_end = document.cookie.length;\\\\n\\\\n return unescape(document.cookie.substring(c_start,c_end));\\\\n }\\\\n }\\\\n return \"\";\\\\n}\\\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\\\n var exdate = new Date();\\\\n exdate.setDate(exdate.getDate()+expiredays);\\\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\\\n}\\\\nfunction getHostUri() {\\\\n var loc = document.location;\\\\n return loc.toString();\\\\n}\\\\nsetCookie(\\\\\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\\\\\', \\\\\\'12.229.62.30\\\\\\', 10);\\\\ntry { \\\\n location.reload(true); \\\\n} catch (err1) { \\\\n try { \\\\n location.reload(); \\\\n } catch (err2) { \\\\n \\\\tlocation.href = getHostUri(); \\\\n } \\\\n}\\\\n</script>\\\\n</head>\\\\n<body>\\\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\\\n</body>\\\\n</html>\\\\n\\'',)",
"self":"<CoroWrapper accepts.<locals>.wrap.<locals>.nf() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/schema.py:644, created at /usr/local/lib/python3.6/asyncio/coroutines.py:85>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/middlewared/schema.py",
"lineno":646,
"method":"nf",
"line":" return await f(args, kwargs)\n",
"varargspec":"args",
"keywordspec":"kwargs",
"locals":{
"kwargs":"{}",
"args":"('
', '***')",
"f":"<function BackupS3Service.get_buckets at 0x81b938ea0>",
"clean_and_validate_args":"<function accepts.<locals>.wrap.<locals>.clean_and_validate_args at 0x81b938f28>"
}
}, {
"filename":"/usr/local/lib/python3.6/asyncio/coroutines.py",
"lineno":129,
"method":"throw",
"line":" return self.gen.throw(type, value, traceback)\n",
"argspec":[
"self",
"type",
"value",
"traceback"
],
"locals":{
"traceback":"None",
"value":"None",
"type":"ResponseParserError('Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\\nb\\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\\\n<html>\\\\n<head>\\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\\\n<script type=\"text/javascript\">\\\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\\\n if (document.cookie.length > 0) {\\\\n c_start = document.cookie.indexOf(c_name + \"=\");\\\\n if (c_start!=-1) {\\\\n c_start=c_start + c_name.length + 1;\\\\n c_end=document.cookie.indexOf(\";\", c_start);\\\\n\\\\n if (c_end==-1) \\\\n c_end = document.cookie.length;\\\\n\\\\n return unescape(document.cookie.substring(c_start,c_end));\\\\n }\\\\n }\\\\n return \"\";\\\\n}\\\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\\\n var exdate = new Date();\\\\n exdate.setDate(exdate.getDate()+expiredays);\\\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\\\n}\\\\nfunction getHostUri() {\\\\n var loc = document.location;\\\\n return loc.toString();\\\\n}\\\\nsetCookie(\\\\\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\\\\\', \\\\\\'12.229.62.30\\\\\\', 10);\\\\ntry { \\\\n location.reload(true); \\\\n} catch (err1) { \\\\n try { \\\\n location.reload(); \\\\n } catch (err2) { \\\\n \\\\tlocation.href = getHostUri(); \\\\n } \\\\n}\\\\n</script>\\\\n</head>\\\\n<body>\\\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\\\n</body>\\\\n</html>\\\\n\\'',)",
"self":"<CoroWrapper get_buckets() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/plugins/backup.py:366, created at /usr/local/lib/python3.6/asyncio/coroutines.py:85>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/middlewared/plugins/backup.py",
"lineno":371,
"method":"get_buckets",
"line":" for bucket in (await self.middleware.run_in_io_thread(client.list_buckets))['Buckets']:\n",
"argspec":[
"self",
"id"
],
"locals":{
"buckets":"[]",
"client":"<botocore.client.S3 object at 0x81dcf1e80>",
"id":"1",
"self":"<backup.BackupS3Service object at 0x81bfe9518>"
}
}, {
"filename":"/usr/local/lib/python3.6/asyncio/coroutines.py",
"lineno":129,
"method":"throw",
"line":" return self.gen.throw(type, value, traceback)\n",
"argspec":[
"self",
"type",
"value",
"traceback"
],
"locals":{
"traceback":"None",
"value":"None",
"type":"ResponseParserError('Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\\nb\\'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\\\n<html>\\\\n<head>\\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\\\n<script type=\"text/javascript\">\\\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\\\n if (document.cookie.length > 0) {\\\\n c_start = document.cookie.indexOf(c_name + \"=\");\\\\n if (c_start!=-1) {\\\\n c_start=c_start + c_name.length + 1;\\\\n c_end=document.cookie.indexOf(\";\", c_start);\\\\n\\\\n if (c_end==-1) \\\\n c_end = document.cookie.length;\\\\n\\\\n return unescape(document.cookie.substring(c_start,c_end));\\\\n }\\\\n }\\\\n return \"\";\\\\n}\\\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\\\n var exdate = new Date();\\\\n exdate.setDate(exdate.getDate()+expiredays);\\\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\\\n}\\\\nfunction getHostUri() {\\\\n var loc = document.location;\\\\n return loc.toString();\\\\n}\\\\nsetCookie(\\\\\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\\\\\', \\\\\\'12.229.62.30\\\\\\', 10);\\\\ntry { \\\\n location.reload(true); \\\\n} catch (err1) { \\\\n try { \\\\n location.reload(); \\\\n } catch (err2) { \\\\n \\\\tlocation.href = getHostUri(); \\\\n } \\\\n}\\\\n</script>\\\\n</head>\\\\n<body>\\\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\\\n</body>\\\\n</html>\\\\n\\'',)",
"self":"<CoroWrapper Middleware.run_in_io_thread() done, defined at /usr/local/lib/python3.6/site-packages/middlewared/main.py:910, created at /usr/local/lib/python3.6/asyncio/coroutines.py:85>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/middlewared/main.py",
"lineno":915,
"method":"run_in_io_thread",
"line":" executor.shutdown(wait=False)\n",
"argspec":[
"self",
"method"
],
"varargspec":"args",
"locals":{
"executor":"<concurrent.futures.thread.ThreadPoolExecutor object at 0x81db05d30>",
"args":"()",
"method":"<bound method ClientCreator._create_api_method.<locals>._api_call of <botocore.client.S3 object at 0x81dcf1e80>>",
"self":"<middlewared.main.Middleware object at 0x80b2dd710>"
}
}, {
"filename":"/usr/local/lib/python3.6/concurrent/futures/thread.py",
"lineno":62,
"method":"run",
"line":" self.future.set_result(result)\n",
"argspec":[
"self"
],
"locals":{
"self":"None"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/client.py",
"lineno":314,
"method":"_api_call",
"line":" return self._make_api_call(operation_name, kwargs)\n",
"argspec":[
"self"
],
"varargspec":"args",
"keywordspec":"kwargs",
"locals":{
"kwargs":"{}",
"args":"()",
"self":"<botocore.client.S3 object at 0x81dcf1e80>",
"py_operation_name":"'list_buckets'",
"operation_name":"'ListBuckets'"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/client.py",
"lineno":599,
"method":"_make_api_call",
"line":" operation_model, request_dict)\n",
"argspec":[
"self",
"operation_name",
"api_params"
],
"locals":{
"event_response":"None",
"handler":"<bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x81db05fd0>>",
"request_dict":"{'url_path': '/', 'query_string': '', 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.4.0 Python/3.6.5 FreeBSD/11.1-STABLE Botocore/1.10.4'}, 'body': b'', 'url': 'http://test.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x81da2ac18>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': None}}}",
"request_context":"{'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x81da2ac18>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': None}}",
"service_name":"'s3'",
"operation_model":"OperationModel(name=ListBuckets)",
"api_params":"{}",
"operation_name":"'ListBuckets'",
"self":"<botocore.client.S3 object at 0x81dcf1e80>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/endpoint.py",
"lineno":148,
"method":"make_request",
"line":" return self._send_request(request_dict, operation_model)\n",
"argspec":[
"self",
"operation_model",
"request_dict"
],
"locals":{
"request_dict":"{'url_path': '/', 'query_string': '', 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.4.0 Python/3.6.5 FreeBSD/11.1-STABLE Botocore/1.10.4'}, 'body': b'', 'url': 'http://test.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x81da2ac18>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': None}}}",
"operation_model":"OperationModel(name=ListBuckets)",
"self":"s3(http://test.com)"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/endpoint.py",
"lineno":175,
"method":"_send_request",
"line":" request, operation_model, attempts)\n",
"argspec":[
"self",
"request_dict",
"operation_model"
],
"locals":{
"request":"<PreparedRequest [GET]>",
"attempts":"1",
"operation_model":"OperationModel(name=ListBuckets)",
"request_dict":"{'url_path': '/', 'query_string': '', 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.4.0 Python/3.6.5 FreeBSD/11.1-STABLE Botocore/1.10.4'}, 'body': b'', 'url': 'http://test.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x81da2ac18>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': None}}}",
"self":"s3(http://test.com)"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/endpoint.py",
"lineno":256,
"method":"_get_response",
"line":" response_dict, operation_model.output_shape)\n",
"argspec":[
"self",
"request",
"operation_model",
"attempts"
],
"locals":{
"parser":"<botocore.parsers.RestXMLParser object at 0x821b04898>",
"protocol":"'rest-xml'",
"http_response_record_dict":"{'headers': {'server': 'nginx/1.13.12', 'date': 'Sat, 26 May 2018 01:17:31 GMT', 'content-type': 'text/html', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'keep-alive': 'timeout=20', 'x-dis-request-id': 'd3c40534dd087ab7016f47a0ba78f0f1', 'p3p': 'CP=\"NON DSP COR ADMa OUR IND UNI COM NAV INT\"', 'cache-control': 'no-cache'}, 'status_code': 200, 'context': {'operation_name': 'ListBuckets'}, 'body': b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n', 'streaming': False}",
"response_dict":"{'headers': {'server': 'nginx/1.13.12', 'date': 'Sat, 26 May 2018 01:17:31 GMT', 'content-type': 'text/html', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'keep-alive': 'timeout=20', 'x-dis-request-id': 'd3c40534dd087ab7016f47a0ba78f0f1', 'p3p': 'CP=\"NON DSP COR ADMa OUR IND UNI COM NAV INT\"', 'cache-control': 'no-cache'}, 'status_code': 200, 'context': {'operation_name': 'ListBuckets'}, 'body': b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'}",
"http_response":"<Response [200]>",
"streaming":"False",
"attempts":"1",
"operation_model":"OperationModel(name=ListBuckets)",
"request":"<PreparedRequest [GET]>",
"self":"s3(http://test.com)"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/parsers.py",
"lineno":242,
"method":"parse",
"line":" parsed = self._do_parse(response, shape)\n",
"argspec":[
"self",
"response",
"shape"
],
"locals":{
"shape":"<StructureShape(ListBucketsOutput)>",
"response":"{'headers': {'server': 'nginx/1.13.12', 'date': 'Sat, 26 May 2018 01:17:31 GMT', 'content-type': 'text/html', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'keep-alive': 'timeout=20', 'x-dis-request-id': 'd3c40534dd087ab7016f47a0ba78f0f1', 'p3p': 'CP=\"NON DSP COR ADMa OUR IND UNI COM NAV INT\"', 'cache-control': 'no-cache'}, 'status_code': 200, 'context': {'operation_name': 'ListBuckets'}, 'body': b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'}",
"self":"<botocore.parsers.RestXMLParser object at 0x821b04898>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/parsers.py",
"lineno":729,
"method":"_do_parse",
"line":" self._parse_payload(response, shape, member_shapes, final_parsed)\n",
"argspec":[
"self",
"response",
"shape"
],
"locals":{
"member_shapes":"OrderedDict([('Buckets', <ListShape(Buckets)>), ('Owner', <StructureShape(Owner)>)])",
"final_parsed":"{'ResponseMetadata': {}}",
"shape":"<StructureShape(ListBucketsOutput)>",
"response":"{'headers': {'server': 'nginx/1.13.12', 'date': 'Sat, 26 May 2018 01:17:31 GMT', 'content-type': 'text/html', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'keep-alive': 'timeout=20', 'x-dis-request-id': 'd3c40534dd087ab7016f47a0ba78f0f1', 'p3p': 'CP=\"NON DSP COR ADMa OUR IND UNI COM NAV INT\"', 'cache-control': 'no-cache'}, 'status_code': 200, 'context': {'operation_name': 'ListBuckets'}, 'body': b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'}",
"self":"<botocore.parsers.RestXMLParser object at 0x821b04898>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/parsers.py",
"lineno":767,
"method":"_parse_payload",
"line":" original_parsed = self._initial_body_parse(response['body'])\n",
"argspec":[
"self",
"response",
"shape",
"member_shapes",
"final_parsed"
],
"locals":{
"final_parsed":"{'ResponseMetadata': {}}",
"member_shapes":"OrderedDict([('Buckets', <ListShape(Buckets)>), ('Owner', <StructureShape(Owner)>)])",
"shape":"<StructureShape(ListBucketsOutput)>",
"response":"{'headers': {'server': 'nginx/1.13.12', 'date': 'Sat, 26 May 2018 01:17:31 GMT', 'content-type': 'text/html', 'transfer-encoding': 'chunked', 'connection': 'keep-alive', 'keep-alive': 'timeout=20', 'x-dis-request-id': 'd3c40534dd087ab7016f47a0ba78f0f1', 'p3p': 'CP=\"NON DSP COR ADMa OUR IND UNI COM NAV INT\"', 'cache-control': 'no-cache'}, 'status_code': 200, 'context': {'operation_name': 'ListBuckets'}, 'body': b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'}",
"self":"<botocore.parsers.RestXMLParser object at 0x821b04898>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/parsers.py",
"lineno":853,
"method":"_initial_body_parse",
"line":" return self._parse_xml_string_to_dom(xml_string)\n",
"argspec":[
"self",
"xml_string"
],
"locals":{
"xml_string":"b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'",
"self":"<botocore.parsers.RestXMLParser object at 0x821b04898>"
}
}, {
"filename":"/usr/local/lib/python3.6/site-packages/botocore/parsers.py",
"lineno":425,
"method":"_parse_xml_string_to_dom",
"line":" \"invalid XML received:\\n%s\" % (e, xml_string))\n",
"argspec":[
"self",
"xml_string"
],
"locals":{
"parser":"<xml.etree.ElementTree.XMLParser object at 0x821ecab48>",
"xml_string":"b'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'",
"self":"<botocore.parsers.RestXMLParser object at 0x821b04898>"
}
}
],
"formatted":"Traceback (most recent call last):\n File \"/usr/local/lib/python3.6/site-packages/botocore/parsers.py\", line 420, in _parse_xml_string_to_dom\n parser.feed(xml_string)\n File \"<string>\", line None\nxml.etree.ElementTree.ParseError: mismatched tag: line 42, column 2\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 154, in call_method\n result = await self.middleware.call_method(self, message)\n File \"/usr/local/lib/python3.6/asyncio/coroutines.py\", line 129, in throw\n return self.gen.throw(type, value, traceback)\n File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 1014, in call_method\n return await self._call(message['method'], serviceobj, methodobj, params, app=app)\n File \"/usr/local/lib/python3.6/asyncio/coroutines.py\", line 129, in throw\n return self.gen.throw(type, value, traceback)\n File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 953, in _call\n return await methodobj(*args)\n File \"/usr/local/lib/python3.6/asyncio/coroutines.py\", line 129, in throw\n return self.gen.throw(type, value, traceback)\n File \"/usr/local/lib/python3.6/site-packages/middlewared/schema.py\", line 646, in nf\n return await f(*args, **kwargs)\n File \"/usr/local/lib/python3.6/asyncio/coroutines.py\", line 129, in throw\n return self.gen.throw(type, value, traceback)\n File \"/usr/local/lib/python3.6/site-packages/middlewared/plugins/backup.py\", line 371, in get_buckets\n for bucket in (await self.middleware.run_in_io_thread(client.list_buckets))['Buckets']:\n File \"/usr/local/lib/python3.6/asyncio/coroutines.py\", line 129, in throw\n return self.gen.throw(type, value, traceback)\n File \"/usr/local/lib/python3.6/site-packages/middlewared/main.py\", line 913, in run_in_io_thread\n return await self.loop.run_in_executor(executor, method, *args)\n File \"/usr/local/lib/python3.6/concurrent/futures/thread.py\", line 56, in run\n result = self.fn(*self.args, **self.kwargs)\n File \"/usr/local/lib/python3.6/site-packages/botocore/client.py\", line 314, in _api_call\n return self._make_api_call(operation_name, kwargs)\n File \"/usr/local/lib/python3.6/site-packages/botocore/client.py\", line 599, in _make_api_call\n operation_model, request_dict)\n File \"/usr/local/lib/python3.6/site-packages/botocore/endpoint.py\", line 148, in make_request\n return self._send_request(request_dict, operation_model)\n File \"/usr/local/lib/python3.6/site-packages/botocore/endpoint.py\", line 175, in _send_request\n request, operation_model, attempts)\n File \"/usr/local/lib/python3.6/site-packages/botocore/endpoint.py\", line 256, in _get_response\n response_dict, operation_model.output_shape)\n File \"/usr/local/lib/python3.6/site-packages/botocore/parsers.py\", line 242, in parse\n parsed = self._do_parse(response, shape)\n File \"/usr/local/lib/python3.6/site-packages/botocore/parsers.py\", line 729, in _do_parse\n self._parse_payload(response, shape, member_shapes, final_parsed)\n File \"/usr/local/lib/python3.6/site-packages/botocore/parsers.py\", line 767, in _parse_payload\n original_parsed = self._initial_body_parse(response['body'])\n File \"/usr/local/lib/python3.6/site-packages/botocore/parsers.py\", line 853, in _initial_body_parse\n return self._parse_xml_string_to_dom(xml_string)\n File \"/usr/local/lib/python3.6/site-packages/botocore/parsers.py\", line 425, in _parse_xml_string_to_dom\n \"invalid XML received:\\n%s\" % (e, xml_string))\nbotocore.parsers.ResponseParserError: Unable to parse response (mismatched tag: line 42, column 2), invalid XML received:\nb'<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\\n<html>\\n<head>\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\\n<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\\n<script type=\"text/javascript\">\\nfunction getCookie(c_name) { // Local function for getting a cookie value\\n if (document.cookie.length > 0) {\\n c_start = document.cookie.indexOf(c_name + \"=\");\\n if (c_start!=-1) {\\n c_start=c_start + c_name.length + 1;\\n c_end=document.cookie.indexOf(\";\", c_start);\\n\\n if (c_end==-1) \\n c_end = document.cookie.length;\\n\\n return unescape(document.cookie.substring(c_start,c_end));\\n }\\n }\\n return \"\";\\n}\\nfunction setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie\\n var exdate = new Date();\\n exdate.setDate(exdate.getDate()+expiredays);\\n document.cookie = c_name + \"=\" + escape(value) + ((expiredays==null) ? \"\" : \";expires=\" + exdate.toGMTString()) + \";path=/\";\\n}\\nfunction getHostUri() {\\n var loc = document.location;\\n return loc.toString();\\n}\\nsetCookie(\\'YPF8827340282Jdskjhfiw_928937459182JAX666\\', \\'12.229.62.30\\', 10);\\ntry { \\n location.reload(true); \\n} catch (err1) { \\n try { \\n location.reload(); \\n } catch (err2) { \\n \\tlocation.href = getHostUri(); \\n } \\n}\\n</script>\\n</head>\\n<body>\\n<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>\\n</body>\\n</html>\\n'\n"
},
"extra":null
}
}```

can we make the "reason" message shorter? thanks.

oldui.png (12.8 KB) oldui.png Rishabh Chauhan, 06/06/2018 11:43 AM
18235

Associated revisions

Revision 17d49bc6 (diff)
Added by Vladimir Vinogradenko over 1 year ago

fix(backup.s3): Fix displaying giant amount of garbage when ResponseParserError occurs Ticket: #34128

History

#1 Updated by Lola Yang over 1 year ago

sorry, i pasted all the error message... it's too long..

#2 Updated by William Grzybowski over 1 year ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko
  • Target version changed from Backlog to 11.2-RC2
  • Severity changed from New to Low Medium

#3 Updated by Vladimir Vinogradenko over 1 year ago

  • Status changed from Unscreened to Ready for Testing

#4 Updated by Dru Lavigne over 1 year ago

  • Subject changed from make error message shorter to Fix displaying unnecessary errors when ResponseParserError occurs in API
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#5 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA1

#6 Updated by Rishabh Chauhan over 1 year ago

  • File oldui.png oldui.png added
  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No
18235

after following the steps, as consulted by Lola and Vladimir, I got a very brief which is expected.

#7 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF