API Key giving me error Authorization=Signature keyId="null"

Mercedes Pons 1
Tera Contributor

Hello,

 

I'm trying to get SGC Cisco Intersight in our ServiceNow instance.  We haven't been successful so far and it seems that it's due to the API Key ID.  We've done a lot of troubleshooting and even had a call with Cisco support, but they can't understand what is happening to us

 

During the setup, every time I run the  Test Load 20 Records, I get a "Success" message but nothing gets loaded.

Looking at the HTTP Log, it seems that the issue is in the API Key ID.

 

{Authorization=Signature keyId="null",algorithm="rsa-sha256",headers="(request-target) date digest host",signature="

 

With this reponse:

 

{"code":"InvalidRequest","message":"Cannot process the request. The keyId is malformed for this API key request.","messageId":"iam_apikey_missing_keyid_field_malformed",

 

Anyone has some experience with this?  This API key works for Cisco support, they can use it, but we have this error in our instance.  I've tried different API keys created in Intersight (read-only) following their instructions, but nothing seems to work.

 

any help would be appreciated.

 

Thank you

 

 

1 REPLY 1

Viraj Hudlikar
Tera Sage

Hello @Mercedes Pons 1 

 

Ensure that the API Key ID and Secret Key are correctly configured in your ServiceNow instance. Double-check for any typos or incorrect entries.

Make sure the API key has the necessary permissions to access the required resources. Sometimes, read-only keys might not have sufficient permissions for certain operations.

The error message indicates that the keyId is malformed. Ensure that the API Key ID is in the correct format and not missing any characters. You might want to regenerate the API key and try again.

Verify that all required HTTP headers are correctly included in your API requests. Missing or incorrect headers can cause authentication failures

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.