Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geomap does not render rooms #1565

Closed
jmbredal opened this issue Aug 23, 2017 · 1 comment
Closed

geomap does not render rooms #1565

jmbredal opened this issue Aug 23, 2017 · 1 comment
Milestone

Comments

@jmbredal
Copy link
Collaborator

jmbredal commented Aug 23, 2017

The request for geomap data fails with a 500 Internal Server Error

Request url:
/geomap/normal/data?format=geojson&limit=30&viewportWidth=1793&viewportHeight=815&create_edges=true&fetch_data=true&timeStart=08%3A20_20170823&timeEnd=08%3A30_20170823&bbox=10.381318201129,63.411492011161,10.419791807233,63.419318218723

Exception value:

<lazy_dict {'color': '#666666', 'popup': {'content': u'<div class="place-popup">\n\n  <table class="listtable">\n    <tr>\n      <th>Rooms</th>\n      <th>IP devices</th>\n      <th>CPU load (max)</th>\n    </tr>\n    <tr>\n      <td>1</td>\n      <td>4</td>\n      <td>unknown</td>\n    </tr>\n  </table>\n\n  \n    <table class="listtable">\n      <caption>\n        <a href="/search/room/blaasalen/"\n           target="_blank"\n           title="View room information">\n          blaasalen\n          (Bl\xe5salen maskinrom, NTNU)\n        </a>\n      </caption>\n\n      <tr>\n        <td><b>IP Devices:</b> 4</td>\n        <td><b>CPU load (max):</b> unknown</td>\n      </tr>\n\n      <tr>\n        <td colspan="2">\n          <ul class="large-block-grid-2">\n            \n              <li>\n                <h5>\n                  <a href="/ipdevinfo/blaasal-sw1.uninett.no/"\n                     target="_blank"\n                     title="View in IP Device Info">blaasal-sw1.uninett.no</a>\n                </h5>\n                <ul class="no-bullet">\n                  <li><b>IP:</b> 128.39.0.88</li>\n                  <li><b>Category:</b> SW</li>\n                  <li><b>Type:</b> Juniper Networks, Inc. ex4550-32f internet router, kernel JUNOS 12.2R5.3, Build date: 2013-06-28 06:55:45 UTC Copyright (c) 1996-2013 Juniper Networks, Inc.</li>\n                  <li><b>Up:</b> y</li>\n                  <li><b>Load:</b> unknown</li>\n                </ul>\n              </li>\n            \n              <li>\n                <h5>\n                  <a href="/ipdevinfo/sw-ex4550-5.bs.unsi.no/"\n                     target="_blank"\n                     title="View in IP Device Info">sw-ex4550-5.bs.unsi.no</a>\n                </h5>\n                <ul class="no-bullet">\n                  <li><b>IP:</b> 158.38.9.5</li>\n                  <li><b>Category:</b> SW</li>\n                  <li><b>Type:</b> Juniper Networks, Inc. ex4550-32f internet router, kernel JUNOS 12.2R5.3, Build date: 2013-06-28 06:55:45 UTC Copyright (c) 1996-2013 Juniper Networks, Inc.</li>\n                  <li><b>Up:</b> y</li>\n                  <li><b>Load:</b> unknown</li>\n                </ul>\n              </li>\n            \n              <li>\n                <h5>\n                  <a href="/ipdevinfo/uninett-gsw2.uninett.no/"\n                     target="_blank"\n                     title="View in IP Device Info">uninett-gsw2.uninett.no</a>\n                </h5>\n                <ul class="no-bullet">\n                  <li><b>IP:</b> 128.39.103.25</li>\n                  <li><b>Category:</b> GSW</li>\n                  <li><b>Type:</b> Cisco6524GT-8S</li>\n                  <li><b>Up:</b> y</li>\n                  <li><b>Load:</b> unknown</li>\n                </ul>\n              </li>\n            \n              <li>\n                <h5>\n                  <a href="/ipdevinfo/blaasal-sw.uninett.no/"\n                     target="_blank"\n                     title="View in IP Device Info">blaasal-sw.uninett.no</a>\n                </h5>\n                <ul class="no-bullet">\n                  <li><b>IP:</b> 158.38.179.68</li>\n                  <li><b>Category:</b> SW</li>\n                  <li><b>Type:</b> Cisco Catalyst 4506e L3 Switch</li>\n                  <li><b>Up:</b> y</li>\n                  <li><b>Load:</b> unknown</li>\n                </ul>\n              </li>\n            \n          </ul>\n        </td>\n      </tr>\n\n    </table>\n  \n\n</div>\n', 'closable': True, 'id': 'popup-cn[cn[156;157;68;69]]', 'size': [300, 250]}, 'type': 'node', 'size': 6}> is not JSON serializable
--



@jmbredal jmbredal added this to the 4.7.2 milestone Aug 23, 2017
@lunkwill42
Copy link
Member

More importantly, @jmbredal, can we introduce a new integration test to detect these kinds of failures in geomap? I suspect this was introduced at some point due to throwing away a custom JSON serializer in favor of Python's built-in one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants