Closed capriguy84 closed 3 years ago
Hi @capriguy84
Starting in Redfish version 1.6, the Session URI location changed. In 1.6, the URI location changed to "redfish/v1/SessionService/Sessions". If using any Redfish version older than 1.6, the URI location is "redfish/v1/Sessions".
To check Redfish version for iDRAC installed, run GET on uri "redfish/v1/?$select=RedfishVersion".
I updated script "CreateXAuthTokenSessionREDFISH" to pass in the correct URI passed off the Redfish version detected for iDRAC.
Thanks Tex
I am using the right uri as you mentioned and get the error. Does the error message "unacceptable header specified in " ring any thing familar w.r.t redfish version changes in 1.6?
I've been trying to repro the error you hit but unable to. Can you send me your python code?
Also did you try GitHub script and it also failed?
I am building similar python script in Ocaml, and was wondering why it doesn't work uniformly on idrac7/8 vs 9. I couldn't reproduce with the python script but asked the question anyway, hoping to get some pointers.
After reading thru the Redfish 1.6 spec and change log, I added additional header field ("Accept" "application/json") and that fixed my issue with idrac 9. Thanks for mentioning about the version change between the idracs.
(please mark issue as resolved)
(This issue is not related to the python script in repo, but rather trying to reproduce the same in Ocaml.)
I am having a weird issue where I can create X-auth-token in idrac v7,8 but NOT in v9. I get below error in idrac9. I tried different Http libraries in Ocaml including (Cohttp and (Httpaf) but all are returning the same error. I kept minimal header info but still same error.
FTR, I am using the new updated uri '/redfish/v1/SessionService/Sessions' on idrac9. In fact, I am querying /redfish/v1/SessionService and getting the sessions/@data.id for right uri for each idrac version. It's different for idrac7,8.
I am passing username and password in payload and using no authentcation in headers. Seems right as per the python example here. Am I missing anything?
TIA