MuleSoft · Validation Module
VALIDATION:INVALID_URL
Short answer
VALIDATION:INVALID_URL is thrown by the Validation module's Is URL operation when the value is not a valid URL. Check the value passed to the validator, and handle the error type if invalid input is something the flow should answer cleanly.
VerifiedLast verified
01Error text
Error type: VALIDATION:INVALID_URL02Likely causes
- The Is URL operation failed: the value is not a valid URL.
- If a validation fails, an error is thrown. Its type is always a child of
VALIDATION:VALIDATION. - A failed check returns a
VALIDATIONerror, such asVALIDATION:INVALID_URL, which is aValidationException.
03How to fix it
- Log the value the validator's expression resolves to, and compare it with what the validator expects.
- Correct the URL value at its source.
- Set the validator's Message parameter to say what was wrong, so the error description is useful to the caller.
- Handle the failure with an error handler of type
VALIDATION:INVALID_URL, for example to return a 400 response.
04Official documentation
→Related errors
- VALIDATION:INVALID_EMAILVALIDATION:INVALID_EMAIL is thrown by the Validation module's Is email operation when the value is not a valid email address. Check the value passed to the validator, and handle the error type if invalid input is something the flow should answer cleanly.
- VALIDATION:INVALID_IPVALIDATION:INVALID_IP is thrown by the Validation module's Is IP, Is allowed IP and Is not denied IP operations when the value is not a valid IP address. Check the value passed to the validator, and handle the error type if invalid input is something the flow should answer cleanly.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer