Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Connection session with PSME using https://<ip>:8443/redfish/v1/SessionService/Sessions #113

@gbhure

Description

@gbhure

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: " https://:/redfish/v1/Managers

Will appreciate urgent help.

Thanks,
Ganesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions