java.lang.IllegalArgumentException: badly formatted directory string error response

hisanorihanai
Tera Contributor

We got an error below for a REST API request from ServiceNow to our internal web system.

java.lang.IllegalArgumentException: badly formatted directory string

The request is from our Service Catalog and RestMessageV2 API is used to send the request.
This looks related to Server cert issue somewhere.


There are some components between ServiceNow and our internal web system such as Firewall, API management system, etc.. We have been investigating the cause of the error above but not yet reached out to it. We are even not sure which component on the route this response was returned from.

We tried to debug the script include for this by adding some RESTResponseV2 debug code like below but those were returned as blank.

response.getAllHeaders();
response.getBody();

Would you give us any advice to expedite the investigation?

1 REPLY 1

magnushedlu
Tera Guru

Hi,

Did you get this resolved? We are experiencing the same issue and we do not understand how to resolve it.