Dear all, I reopen this "old" topic because I have a similar issue and Dan's response didn't helped me. When I trace the flow on ACS server, I observe that the request doesn't use the open CWMP session between the ACS and the device but initiates a new one using private IP of the device which won't work since device on customer premise behind a NAT. When I perform a call form APIs I have the same issue but instead of a 202 I receive an error 504.
See attached files for details. Am I doing something wrong? Le lun. 16 juil. 2018 à 21:45, Dan Morphis <[email protected]> a écrit : > 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 >
from_api_504.pcap
Description: Binary data
from_gui_202.pcap
Description: Binary data
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
