paulrg
Contributor
Contributor

An authorization header was expected but not found

While using the vCD API (through ElectricCloud ElectricCommander integration) we are receiving the following error. It doesn't happen consistently. It's very sporadic.

Any ideas what this could be caused from? Like I said, the Provision may work 50 times, and then once it doesn't.

Response:

    Authentication status: 401 Unauthorized

401 Unauthorized

Error: 401 Unauthorized with message 'An authorization header was expected but not found.'

Thanks

Paul

0 Kudos
1 Reply
IamTHEvilONE
Immortal
Immortal

It makes it sound like either the cookie auth or x-cloud-authorization is missing from the connection.

the error seen isn't coming from vCloud, but probably the web server stating that the authorization is missing.

you can check the rejection for the API call in the request log.  Log name format is YYYY_MM_DD then request then maybe some digits then .log.

in there there will be the URL and the HTTP status code.  you should be able to grep it for the HTTP status code of 401.

The only exception to this is if you have an API gateway/security/monitoring tool between Electric Commander and vCloud Director's address.

0 Kudos