API call failure

Dan Morphis dan at milkcarton.com
Thu Apr 19 18:01:38 EDT 2018


>From looking at your device model, it appears you have connection auth
turned on on your CPEs. Have you modified genieacs/config/auth.js to return
the connection request username/password?

-dan

On Thu, Apr 19, 2018 at 1:09 PM, <eric at aisling-technologies.com> wrote:

> Fair enough.  I will spin up a linux machine and test.
>
>
>
> Strangely, the connection attempts do not go into the debug, however all
> of the periodic informs do.
>
>
>
> *From:* Users <users-bounces at lists.genieacs.com> *On Behalf Of *Dan
> Morphis
> *Sent:* Thursday, April 19, 2018 4:45 PM
>
> *To:* Community support for GenieACS users <users at lists.genieacs.com>
> *Subject:* Re: API call failure
>
>
>
> I think some of your issues might be because you are using the windows
> version of curl. Try curl on a unix box. I don't see the curl: (6) errors
> in unix.
>
>
>
> What is in the debug/{acs_id}.dump file?
>
>
>
> -dan
>
>
>
> On Thu, Apr 19, 2018 at 12:31 PM, <eric at aisling-technologies.com> wrote:
>
> We are getting closer…  See below.
>
>
>
> C:\Users\eric>curl -i "http://###.###.###.###:7557/
> devices/1C497B-B2338%2D168-GMC170508001297/tasks?timeout=
> 3000&connection_request
> <http://#%23%23.%23%23%23.%23%23%23.%23%23%23:7557/devices/1C497B-B2338%2D168-GMC170508001297/tasks?timeout=3000&connection_request>"
> -X POST     --data '{ "name": "getParameterValues", "parameterNames":
> ["InternetGatewayDevice.DeviceInfo.ProductClass"] }'
>
> curl: (52) Empty reply from server
>
> curl: (6) Could not resolve host: name
>
> curl: (6) Could not resolve host: getParameterValues,
>
> curl: (6) Could not resolve host: parameterNames
>
> curl: (6) Could not resolve host: [InternetGatewayDevice.
> DeviceInfo.ProductClass]
>
> curl: (3) [globbing] unmatched close brace/bracket in column 1
>
>
>
> this is just a lab setup that I access and play with when I have time.  I
> shut it off when not in use, but you’re right, it does need to be
> firewalled…
>
>
>
> *From:* Users <users-bounces at lists.genieacs.com> *On Behalf Of *Dan
> Morphis
> *Sent:* Thursday, April 19, 2018 4:10 PM
>
>
> *To:* Community support for GenieACS users <users at lists.genieacs.com>
> *Subject:* Re: API call failure
>
>
>
> You're double encoding the device ID. Try this:
>
>
>
> curl -i "http://35.171.217.31:7557/devices/1C497B-B2338%2D168-
> GMC170508001297/tasks?timeout=3000&connection_request" -X POST     --data
> '{ "name": "getParameterValues", "parameterNames": ["InternetGatewayDevice.DeviceInfo.ProductClass"]
> }'
>
>
>
>
>
>
>
> On Thu, Apr 19, 2018 at 11:50 AM, Eric Whalen <ewhalen at xtremeinternet.biz>
> wrote:
>
> It still failed with the specific parm specified.  The results are below…
>
>
>
> C:\Users\eric>curl -i "http://35.171.217.31:7557/
> devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request"
> -X POST --data "{"name":"refreshObject", "objectName":"
> InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP"}"
>
> curl: (52) Empty reply from server
>
>
>
> I really appreciate your help on this.
>
>
>
> *From:* Users <users-bounces at lists.genieacs.com> *On Behalf Of *Dan
> Morphis
> *Sent:* Thursday, April 19, 2018 3:42 PM
> *To:* Community support for GenieACS users <users at lists.genieacs.com>
> *Subject:* Re: API call failure
>
>
>
> 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 <ewhalen at xtremeinternet.biz>
> 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
> <http://#%23%23.%23%23%23.%23%23%23.%23%23%23: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
>
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180419/e114de50/attachment.html>


More information about the Users mailing list