When attempting to make a connection to an API to perform an action, the following error is returned:
"message": "UrlError { details: \"Url contains invalid characters.\" }",
- Okta Workflows
- Non-ASCII characters
Okta Workflows supports UTF8 characters. ASCII is a subset of UTF8.
According to RFC1738, only ASCII characters can be utilized within a URL, and all other UTF8 characters must be encoded.
To resolve this issue, ensure all non-ASCII characters utilized in an API query are URL encoded. This can be challenging as some non-ASCII characters are identical to ASCII characters when viewed, as shown in the example below:
- Βrown: The "B" character is non-ASCII
- Brown: The "B" character is ASCII
For an initial test to confirm the problem, type out the full URL string by hand. This should ensure only ASCII characters are utilized, which will resolve the issue. Once confirmed, this resolves the issue, and can locate the source input causing the non-ASCII character(s) in the flow.
Alternatively, leverage the Encode Component card to identify the non-ASCII character(s) or to encode and then use the non-ASCII value(s) inside the URL.
