Don't refresh "", that doesn't really work right in v1.1, refresh a specific instance.
On Thu, Apr 19, 2018 at 11:41 AM, Eric Whalen <[email protected]> wrote: > Ok, so that fixed the debug issue. However when I run the following > command > > > > C:\Users\eric>curl -i "http://###.###.###.###:7557/ > devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request" > -X POST --data "{"name":"refreshObject", "objectName":""}" > > > > I get the following response > > > > curl: (52) Empty reply from server > > > > and nothing is written to the debug except for the periodic informs. > > > > Thanks > > > > > > *From:* Users <[email protected]> *On Behalf Of *Dan > Morphis > *Sent:* Thursday, April 19, 2018 2:58 PM > > *To:* Community support for GenieACS users <[email protected]> > *Subject:* Re: API call failure > > > > Change > > "DEBUG-1C497B-B2338%252D168-GMC170508001297" : true > > to just: > "DEBUG" true > > > > The old method of being able to debug just one config isn't supported > anymore I believe. If you are in a production environment, turn debug off > ASAP or you will fill your disk with logs! > > > > -dan > > > > On Thu, Apr 19, 2018 at 10:56 AM, <[email protected]> wrote: > > The issue accessing the GUI after the config change was the result of a > typo. However, I do not see anything written to the /opt/genieacs/debug > folder. Below is my config. Thanks for the help. > > > > { > > "MONGODB_CONNECTION_URL" : "mongodb://127.0.0.1/genieacs", > > "CWMP_INTERFACE" : "0.0.0.0", > > "CWMP_PORT" : 7547, > > "CWMP_SSL" : false, > > "NBI_INTERFACE" : "0.0.0.0", > > "NBI_PORT" : 7557, > > "FS_INTERFACE" : "0.0.0.0", > > "FS_PORT" : 7567, > > "FS_HOSTNAME" : "acs.example.com", > > "DEBUG-1C497B-B2338%252D168-GMC170508001297" : true > > } > > > > *From:* Users <[email protected]> *On Behalf Of *Dan > Morphis > *Sent:* Thursday, April 19, 2018 2:39 PM > > > *To:* Community support for GenieACS users <[email protected]> > *Subject:* Re: API call failure > > > > You would need to post your entire config.json file for me to see where > the issue might be. > > > > -dan > > > > On Thu, Apr 19, 2018 at 7:39 AM, <[email protected]> wrote: > > I added the following line to config.json, but after restarting I can no > longer access the gui. > > > > "DEBUG-1C497B-B2338%252D168-GMC170508001297" : true, > > > > Clearly my syntax is incorrect, but I’m not sure where. > > > > *From:* Users <[email protected]> *On Behalf Of *Dan > Morphis > *Sent:* Wednesday, April 18, 2018 1:26 PM > *To:* Community support for GenieACS users <[email protected]> > *Subject:* Re: API call failure > > > > 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. > > > > -dan > > > > On Wed, Apr 18, 2018 at 5:06 AM, <[email protected]> wrote: > > To add a little more detail... > > The Device OUI is 1C497B > The Product Class is B2338-168 > The Serial # is GMC170508001297 > The GUI displays the Device as 1C497B-B2338%2D168-GMC170508001297 > The device URL in the GUI is http://###.###.###.###/ > devices/1C497B-B2338%252D168-GMC170508001297 > <http://#%23%23.%23%23%23.%23%23%23.%23%23%23/devices/1C497B-B2338%252D168-GMC170508001297> > > 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... > > 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: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)" > > Any help would be greatly appreciated as I need to get this working before > I can launch in a live environment. > > Thank you in advance! > > > -----Original Message----- > From: [email protected] <[email protected]> > Sent: Wednesday, April 18, 2018 7:01 AM > To: 'Community support for GenieACS users' <[email protected]> > Subject: RE: API call failure > > Does anyone have any thoughts on this issue? > > Thank you. > > -----Original Message----- > From: Users <[email protected]> On Behalf Of > [email protected] > Sent: Sunday, April 15, 2018 12:17 PM > To: 'Community support for GenieACS users' <[email protected]> > Subject: RE: API call failure > > Oliver, > > I updated the connection url to > http://35.171.217.31:7557/devices/1C497B%2DB2338%2D168% > 2DGMC170508001297/tasks?connection_request > > I still receive the following error... > > 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: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)" > > > Any thoughts? > Thanks > > -----Original Message----- > From: Users <[email protected]> On Behalf Of Oliver > Kraitschy > Sent: Monday, March 26, 2018 8:51 AM > To: [email protected] > Subject: Re: API call failure > > Hello Eric, > > the url you're using is not fully url-encoded. You need to encode the > hyphens ('-') as well. > > Greetings, > Oliver > > Am 26.03.2018 14:37, schrieb [email protected]: > > 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/t > > asks?connection_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. > > _______________________________________________ > > Users mailing list > > [email protected] > > http://lists.genieacs.com/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
