bmcweb icon indicating copy to clipboard operation
bmcweb copied to clipboard

InternalError while uploading invalid certificate

Open rahulmah opened this issue 5 years ago • 2 comments

Hitting InternalError while uploading invalid certificate. This should be better handled. I think we should be getting better message id like "Message id : Base.1.0.SettingsFailed". Also the message text should be more meaningful in such cases.

bash-4.1$ curl c cjar -b cjar -k -H "X-Auth-Token: $bmc_token" -X POST https://${BMC_IP}/redfish/v1/CertificateService/Actions/CertificateService.ReplaceCertificate/ -d @certificate_https_invalid.json
{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
        "Message": "The request failed due to an internal service error.  The service is still operational.",
        "MessageArgs": [],
        "MessageId": "Base.1.4.0.InternalError",
        "Resolution": "Resubmit the request.  If the problem persists, consider resetting the service.",
        "Severity": "Critical"
      }
    ],
    "code": "Base.1.4.0.InternalError",
    "message": "The request failed due to an internal service error.  The service is still operational."
  }
}bash-4.1$

System info: System - Witherspoon

rahulmah avatar May 21 '19 06:05 rahulmah

@rahulmah Still a problem?

gtmills avatar May 07 '21 18:05 gtmills

I don't think it has been fixed. Let me cross-check and get back by tomorrow.

rahulmah avatar May 11 '21 12:05 rahulmah

21 months later, I'm guessing this either wasn't a priority problem, or was in fact fixed. Please let me know if you'd like this reopened.

edtanous avatar Mar 27 '23 17:03 edtanous