[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3264: integration/test_web.py::test_storage_info_json fails in the integration/storage-economics branch
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Nov 8 16:14:22 UTC 2019
#3264: integration/test_web.py::test_storage_info_json fails in the integration
/storage-economics branch
---------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
On CI:
{{{
____________________________ test_storage_info_json
____________________________
storage_nodes = [<integration.util.TahoeProcess object at 0x7fbe0c031d90>,
<integration.util.TahoeProcess object at 0x7fbe0c031a90>, <...0>,
<integration.util.TahoeProcess object at 0x7fbe0c031c10>,
<integration.util.TahoeProcess object at 0x7fbe0c031bd0>]
def test_storage_info_json(storage_nodes):
"""
retrieve and confirm /storage?t=json URI for one storage node
"""
storage0 = storage_nodes[0]
resp = requests.get(
util.node_url(storage0.node_dir, u"storage"),
params={u"t": u"json"},
)
> data = json.loads(resp.content)
integration/test_web.py:435:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _
/usr/lib/python2.7/json/__init__.py:339: in loads
return _default_decoder.decode(s)
/usr/lib/python2.7/json/decoder.py:364: in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _
self = <json.decoder.JSONDecoder object at 0x7fbe11f66110>
s = '<html><head><title>Exception</title></head><body><style
type="text/css">\np.error {\n color: black;\n font-family: ..."><type
\'exceptions.AttributeError\'>: \'NoneType\' object has no attribute
\'get_stats\'</p></a></body></html>'
idx = 0
def raw_decode(self, s, idx=0):
"""Decode a JSON document from ``s`` (a ``str`` or ``unicode``
beginning with a JSON document) and return a 2-tuple of the Python
representation and the index in ``s`` where the document ended.
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)
except StopIteration:
> raise ValueError("No JSON object could be decoded")
E ValueError: No JSON object could be decoded
/usr/lib/python2.7/json/decoder.py:382: ValueError
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3264>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list