<div dir="ltr">From the error message it would appear the CPE is sending bad data. Enable debugging and look in the debug folder for the acs id.<div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 18, 2018 at 5:06 AM,  <span dir="ltr"><<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To add a little more detail...<br>
<br>
The Device OUI is 1C497B<br>
The  Product Class is B2338-168<br>
The Serial # is GMC170508001297<br>
The GUI displays the Device as 1C497B-B2338%2D168-<wbr>GMC170508001297<br>
The device URL in the GUI is http://###.###.###.###/<wbr>devices/1C497B-B2338%252D168-<wbr>GMC170508001297<br>
<br>
The Device ID is different in the URL than the GUI display which I assume is due to URL encoding.  If that is the case, why does that url not work in my connection request?  See error below...<br>
<br>
Apr 15 11:15:18 ip-###-###-###-### genieacs-nbi[1192]: 2018-04-15T16:15:18.016Z [ERROR] Uncaught exception; pid=1655 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:<wbr>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.<wbr>js:80:11)\n    at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<br>
<br>
Any help would be greatly appreciated as I need to get this working before I can launch in a live environment.<br>
<br>
Thank you in advance!<br>
<span class=""><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:eric@aisling-technologies.com">eric@aisling-technologies.com</a> <<a href="mailto:eric@aisling-technologies.com">eric@aisling-technologies.com</a><wbr>> <br>
Sent: Wednesday, April 18, 2018 7:01 AM<br>
To: 'Community support for GenieACS users' <<a href="mailto:users@lists.genieacs.com">users@lists.genieacs.com</a>><br>
Subject: RE: API call failure<br>
<br>
</span><span class="">Does anyone have any thoughts on this issue?<br>
<br>
Thank you.<br>
<br>
</span><span class="">-----Original Message-----<br>
From: Users <<a href="mailto:users-bounces@lists.genieacs.com">users-bounces@lists.genieacs.<wbr>com</a>> On Behalf Of <a href="mailto:eric@aisling-technologies.com">eric@aisling-technologies.com</a><br>
Sent: Sunday, April 15, 2018 12:17 PM<br>
To: 'Community support for GenieACS users' <<a href="mailto:users@lists.genieacs.com">users@lists.genieacs.com</a>><br>
Subject: RE: API call failure<br>
<br>
</span><span class="">Oliver, <br>
<br>
I updated the connection url to<br>
<a href="http://35.171.217.31:7557/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request" rel="noreferrer" target="_blank">http://35.171.217.31:7557/<wbr>devices/1C497B%2DB2338%2D168%<wbr>2DGMC170508001297/tasks?<wbr>connection_request</a><br>
<br>
I still receive the following error...<br>
<br>
</span>Apr 15 11:15:18 ip-###-###-###-### genieacs-nbi[1192]: 2018-04-15T16:15:18.016Z [ERROR] Uncaught exception; pid=1655 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:<wbr>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.<wbr>js:80:11)\n    at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<br>
<div class="HOEnZb"><div class="h5"><br>
Any thoughts?<br>
Thanks<br>
<br>
-----Original Message-----<br>
From: Users <<a href="mailto:users-bounces@lists.genieacs.com">users-bounces@lists.genieacs.<wbr>com</a>> On Behalf Of Oliver Kraitschy<br>
Sent: Monday, March 26, 2018 8:51 AM<br>
To: <a href="mailto:users@lists.genieacs.com">users@lists.genieacs.com</a><br>
Subject: Re: API call failure<br>
<br>
Hello Eric,<br>
<br>
the url you're using is not fully url-encoded. You need to encode the hyphens ('-') as well.<br>
<br>
Greetings,<br>
Oliver<br>
<br>
Am 26.03.2018 14:37, schrieb <a href="mailto:eric@aisling-technologies.com">eric@aisling-technologies.com</a>:<br>
> I am attempting to use Google's Postman to test my API calls to <br>
> GenieACS, but my lack of experience is causing me issues.  I am trying <br>
> to do the following;<br>
> <br>
> <a href="http://35.171.217.31:7557/devices/1C497B-B2338%2D168-GMC170508001297/t" rel="noreferrer" target="_blank">http://35.171.217.31:7557/<wbr>devices/1C497B-B2338%2D168-<wbr>GMC170508001297/t</a><br>
> asks?connection_request<br>
> <br>
> {"name":"refreshObject", "objectName":""}<br>
> <br>
> Which generates the following log messages…<br>
> <br>
> Mar 26 12:24:39 ip-###-##-##-## genieacs-nbi[1167]:<br>
> 2018-03-26T12:24:39.562Z [ERROR] Uncaught exception; pid=7258 <br>
> exceptionName="SyntaxError" exceptionMessage="Unexpected token % in <br>
> JSON at position 0" exceptionStack="SyntaxError: Unexpected token % in<br>
> JSON at position 0\n    at JSON.parse (<anonymous>)\n    at<br>
> IncomingMessage.<anonymous> (/opt/genieacs/lib/nbi.js:384:<wbr>23)\n    at<br>
> emitNone (events.js:86:13)\n    at IncomingMessage.emit<br>
> (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\n<br>
>    at _combinedTickCallback (internal/process/next_tick.<wbr>js:80:11)\n<br>
> at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<br>
> <br>
> Mar 26 12:25:09 ip-###-##-##-## genieacs-nbi[1167]:<br>
> 2018-03-26T12:25:09.569Z [ERROR] Worker died; pid=7258 exitCode=1<br>
> <br>
> Mar 26 12:25:09 ip-###-##-##-## genieacs-nbi[1167]:<br>
> 2018-03-26T12:25:09.864Z [INFO] Worker listening; pid=7400 <br>
> address="0.0.0.0" port=7557<br>
> <br>
> Any guidance would be greatly appreciated.<br>
> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
> <a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>