API call failure

Dan Morphis dan at milkcarton.com
Thu Apr 19 16:09:49 EDT 2018


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180419/906da52e/attachment.html>


More information about the Users mailing list