ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

ServiceNow Connector - 400 Bad Request error - Duplicate Headers

book

Article ID: 237475

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Suite

Issue/Introduction

ServiceNow Connector is returning 400 Bad Request errors.

Cause

The problem is caused by ServiceNow making changes where the new code is rejecting requests from IM because of duplicate header values.

Resolution

Engineering could not reproduce the duplicate header error with the out-of-box ServiceNow policy and the ServiceNow instance that they have.

The did note that per the API Gateway documentation it seems that the out-of-box policy will add duplicate headers to the HTTP Routing Assertion:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/9-4/policy-assertions/assertion-palette/message-routing-assertions/route-via-http-s-assertion.html#concept.dita_049ffc6cf73f4e1b368ebb8707b00fe50b5546cc_ConfiguringtheAuthenticationTab

The documentation mentions that the "Use HTTP Credentials from Request" option in the Authentication tab itself adds the Authorization header and adding the "Authorization" header in the Headers tab would be redundant. Hence we suggest deleting the explicit "Authorization" header entry under Headers tab in your custom ServiceNowMDT policy and test if that resolves the error you are seeing. Removing this did not impact the out-of-box policy in the testing Engineering did.

For reference:

https://mail.google.com/mail/u/0?ui=2&ik=a298b65e61&attid=0.0.5&permmsgid=msg-f:1726760074452270936&th=17f6af23920dff58&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ_bpn6W8DdfMgATvBUPI7xW7kkJz6BmLmGYY9rPoIeufOONdkgRInMYvDWeNwIS-6nTZL9TWU7dUF38lkto9pBARAuC59CVjVXb0D3mOwcy-tUsyMzg5lBfYq4&disp=emb&realattid=ii_l0iia4qw4

https://mail.google.com/mail/u/0?ui=2&ik=a298b65e61&attid=0.0.6&permmsgid=msg-f:1726760074452270936&th=17f6af23920dff58&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ_zS4icXmT4LTPnNK_82bCFEbCqFHrneYOALW9IMoF76p6_59B5l9WaH8jR6x36FmhiqEINfAClVAjezzjQG3z2ZPMOudLFvK3V09kcoYNOayU30n2uJsRaX9M&disp=emb&realattid=ii_l0iic4db5