A 202 will be reported if a timely response is not returned from the CPE. Try adding &timeout=3000 to the URI. See the API reference for more information <https://github.com/genieacs/genieacs/wiki/API-Reference>.
On Sun, Jul 15, 2018 at 5:31 PM, <[email protected]> wrote: > I am trying to use curl to do a post to refresh the “InternetGatewayDevice. > SystemConfig.Status.ModemStatus.DownlinkCurrentSpeed” parameter. When I > run this command… > > > > curl -i http://LOCALHOST:7557/devices/1C497B-B2338%252D168- > GMC170508001297/tasks?connection_request -X POST --data > "{\"name\":\"refreshObject\", \"objectName\":\"InternetGatewayDevice. > SystemConfig.Status.ModemStatus.DownlinkCurrentSpeed\"}" > > > > I get the following output… > > > > HTTP/1.1 202 Device is offline > > GenieACS-Version: 1.1.2 > > Content-Type: application/json > > Date: Sun, 15 Jul 2018 22:52:13 GMT > > Connection: keep-alive > > Transfer-Encoding: chunked > > > > {"name":"refreshObject","objectName":"InternetGatewayDevice. > SystemConfig.Status.ModemStatus.DownlinkCurrentSpeed","device" > :"1C497B-B2338%2D168-GMC170508001297","timestamp":" > 2018-07-15T22:52:11.705Z","_id":"5b4bd01b8aeb1a079946c261"} > > > > The device however *is not offline* and it shows online in the GUI. Any > thoughts? > > > > Thank you. > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
