Opened at 2019-11-08T16:14:22Z
Closed at 2019-11-11T00:48:20Z
#3264 closed defect (fixed)
integration/test_web.py::test_storage_info_json fails in the integration/storage-economics branch
Reported by: | exarkun | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | undecided |
Component: | unknown | Version: | n/a |
Keywords: | Cc: | ||
Launchpad Bug: |
Description
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
Change History (2)
comment:1 Changed at 2019-11-08T19:17:52Z by exarkun
comment:2 Changed at 2019-11-11T00:48:20Z by exarkun
- Resolution set to fixed
- Status changed from new to closed
Merged into integration branch in https://github.com/tahoe-lafs/tahoe-lafs/commit/f0d32a5123fd363717dc01de89042076f5f5a6b6
Note: See
TracTickets for help on using
tickets.
https://github.com/tahoe-lafs/tahoe-lafs/pull/666