intelRSD
intelRSD copied to clipboard
Connection session with PSME using https://<ip>:8443/redfish/v1/SessionService/Sessions
I have built and installed PSME on ubuntu16.04 (https://github.com/intel/intelRSD.git) and trying to establish connection sessions using below POST request. I get 500 Internal Server Error
$ curl -X POST -D headers.txt https://<IP>:8443/redfish/v1/SessionService/Sessions -H "OData-Version: 4.0" -H "Content-Type: application/json; utf-8" -d '{"UserName": "admin", "Password": "redfish"}' -k -v
$ cat headers.txt
HTTP/1.1 500 Internal Server Error
Connection: Keep-Alive
Content-Length: 169
Content-Type: application/json
Date: Tue, 19 Nov 2019 08:46:09 GMT
I see below error on PSME logs for ./psme-rest-server ~/intelRSD/PSME/application/configuration.json
2019-11-19 14:16:02.419462747 - INFO - ssdp - SSDP service started.
2019-11-19 14:16:09.918326591 - ERROR - rest - std::exception: basic_string::substr: __pos (which is 32) > this->size() (which is 7)
URL: /redfish/v1/SessionService/Sessions
Method: POST
Body: {"UserName": "admin", "Password": "redfish"}
If this works good, I would like below API
$ curl -k -H "X-Auth-Token: <token recved in POST command>" https://<IP>:
Will appreciate urgent help.
Thanks, Ganesh