# GenieACS getting Invalid Session Error from EasyCWMP

**URL:** <https://forum.genieacs.com/t/genieacs-getting-invalid-session-error-from-easycwmp/4013>\
**Category:** Uncategorized\
**Created:** [June 6, 2023, 12:11pm UTC](https://forum.genieacs.com/t/genieacs-getting-invalid-session-error-from-easycwmp/4013 "2023-06-06T12:11:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shiv](https://forum.genieacs.com/u/shiv)\
**Post date:** [June 6, 2023, 12:11pm UTC](https://forum.genieacs.com/t/genieacs-getting-invalid-session-error-from-easycwmp/4013/1 "2023-06-06T12:11:00Z")

</div>

Hello everyone  
I have EasyCWMP and GenieACS installed in a Ubuntu Virtual Machine. They are sending regular Inform request and Inform Responses between each other.  
I am trying to send curl commands to use any get or set functions from GenieACS to the CWMP, and I keep getting the Invalid Session error.

curl -u easycwmp:easycwmp -i ‘[http://localhost:7547/devices/FFFFFF-easycwmp-FFFFFF123456/tasks](http://localhost:7547/devices/FFFFFF-easycwmp-FFFFFF123456/tasks)’ -X POST -H ‘Content-Type: application/json’ -d ‘{ “name”: “getParameterValues”, “parameterNames”: [“Device.DeviceInfo.SpecVersion”]}’  
HTTP/1.1 400 Bad Request  
Content-Length: 15  
Connection: close  
Date: Tue, 06 Jun 2023 12:01:41 GMT

Invalid session

Any suggestions?

---

<div class="post-metadata">

**Author:** ![guru](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@guru](https://forum.genieacs.com/u/guru)\
**Post date:** [June 7, 2023, 5:00pm UTC](https://forum.genieacs.com/t/genieacs-getting-invalid-session-error-from-easycwmp/4013/2 "2023-06-07T17:00:45Z")

</div>

Are you doing this from the application?

---

<div class="post-metadata">

**Author:** ![guru](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@guru](https://forum.genieacs.com/u/guru)\
**Post date:** [June 7, 2023, 5:02pm UTC](https://forum.genieacs.com/t/genieacs-getting-invalid-session-error-from-easycwmp/4013/3 "2023-06-07T17:02:26Z")

</div>

Normally a normal communication should be from acs to initiate a connection request which will trigger the device to also send a connection request. Then your get or set should work.

---

<div class="post-metadata">

**Author:** ![shiv](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shiv](https://forum.genieacs.com/u/shiv)\
**Post date:** [June 23, 2023, 5:16am UTC](https://forum.genieacs.com/t/genieacs-getting-invalid-session-error-from-easycwmp/4013/4 "2023-06-23T05:16:12Z")

</div>

Sorry for the late reply. But I fixed the silly error. I was using the CWMP port 7547 instead of the NBI port 7557 to send requests, which was causing the error. Helpful for anyone using curl commands instead of the GUI in the browser.
