<div dir="ltr">You would need to post your entire config.json file for me to see where the issue might be.<div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 19, 2018 at 7:39 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"><div lang="EN-US" link="blue" vlink="purple"><div class="m_7328716046308279777WordSection1"><p class="MsoNormal">I added the following line to config.json, but after restarting I can no longer access the gui.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">"DEBUG-1C497B-B2338%252D168-<wbr>GMC170508001297" : true,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Clearly my syntax is incorrect, but I’m not sure where.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b>From:</b> Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>> <b>On Behalf Of </b>Dan Morphis<br><b>Sent:</b> Wednesday, April 18, 2018 1:26 PM<span class=""><br><b>To:</b> Community support for GenieACS users <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br></span><b>Subject:</b> Re: API call failure<u></u><u></u></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">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.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">-dan<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Wed, Apr 18, 2018 at 5:06 AM, <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal">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 <a href="http://#%23%23.%23%23%23.%23%23%23.%23%23%23/devices/1C497B-B2338%252D168-GMC170508001297" target="_blank">http://###.###.###.###/<wbr>devices/1C497B-B2338%252D168-<wbr>GMC170508001297</a><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)\<wbr>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><br><br>-----Original Message-----<br>From: <a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a> <<a href="mailto:eric@aisling-technologies.com" target="_blank">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" target="_blank">users@lists.genieacs.com</a>><br>Subject: RE: API call failure<br><br>Does anyone have any thoughts on this issue?<br><br>Thank you.<br><br>-----Original Message-----<br>From: Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>> On Behalf Of <a href="mailto:eric@aisling-technologies.com" target="_blank">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" target="_blank">users@lists.genieacs.com</a>><br>Subject: RE: API call failure<br><br>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" 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>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)\<wbr>n    at _combinedTickCallback (internal/process/next_tick.<wbr>js:80:11)\n    at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<u></u><u></u></p><div><div><p class="MsoNormal"><br>Any thoughts?<br>Thanks<br><br>-----Original Message-----<br>From: Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">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" target="_blank">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" target="_blank">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" 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" target="_blank">Users@lists.genieacs.com</a><br>> <a href="http://lists.genieacs.com/mailman/listinfo/users" 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" target="_blank">Users@lists.genieacs.com</a><br><a href="http://lists.genieacs.com/mailman/listinfo/users" 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" target="_blank">Users@lists.genieacs.com</a><br><a href="http://lists.genieacs.com/mailman/listinfo/users" 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" target="_blank">Users@lists.genieacs.com</a><br><a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><u></u><u></u></p></div></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><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></blockquote></div><br></div>