API call failure
eric at aisling-technologies.com
eric at aisling-technologies.com
Mon Mar 26 08:37:31 EDT 2018
I am attempting to use Google's Postman to test my API calls to GenieACS,
but my lack of experience is causing me issues. I am trying to do the
following;
http://35.171.217.31:7557/devices/1C497B-B2338%2D168-GMC170508001297/tasks?c
onnection_request
{"name":"refreshObject", "objectName":""}
Which generates the following log messages.
Mar 26 12:24:39 ip-###-##-##-## genieacs-nbi[1167]: 2018-03-26T12:24:39.562Z
[ERROR] Uncaught exception; pid=7258 exceptionName="SyntaxError"
exceptionMessage="Unexpected token % in JSON at position 0"
exceptionStack="SyntaxError: Unexpected token % in JSON at position 0\n
at JSON.parse (<anonymous>)\n at IncomingMessage.<anonymous>
(/opt/genieacs/lib/nbi.js:384:23)\n at emitNone (events.js:86:13)\n at
IncomingMessage.emit (events.js:188:7)\n at endReadableNT
(_stream_readable.js:975:12)\n at _combinedTickCallback
(internal/process/next_tick.js:80:11)\n at process._tickCallback
(internal/process/next_tick.js:104:9)"
Mar 26 12:25:09 ip-###-##-##-## genieacs-nbi[1167]: 2018-03-26T12:25:09.569Z
[ERROR] Worker died; pid=7258 exitCode=1
Mar 26 12:25:09 ip-###-##-##-## genieacs-nbi[1167]: 2018-03-26T12:25:09.864Z
[INFO] Worker listening; pid=7400 address="0.0.0.0" port=7557
Any guidance would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180326/917a2e14/attachment.html>
More information about the Users
mailing list