Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

app crashes with more locations #7

@sandropons

Description

@sandropons

Hi there,

the app crashes if i have a second building location of another location.

i try to explain it with this tree:
root-node (i.e.: company name)
-node1 (i.e.: city A)
--building1
---floor_5
---floor_6
-node2 (i.e.: city B)
--building2

If i have building2 (with or without floor childrens) the app crashes, if i remove building2 the app works... unfortunately i have more locations and buildings to manage in my HiveManager NG.

It seems an API call returned an html response but i'm not able to track which one.

Here are the exit errors:

`STATUS 400
HEADERS: {"content-type":"text/html","date":"Fri, 04 Mar 2016 09:37:37 GMT","server":"nginx","content-length":"166","connection":"keep-alive"}

undefined:1
<html>
^
SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage. (/home/sandro/AnalyticsRef-master/bin/aerohive/api/req.js:36:37)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
`

I hope you can have a look at this.

Regards,
Sandro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions