Skip to contentSkip to navigationSkip to topbar
On this page

30139: URL not valid for link shortening



ERROR: 30139

error-30139 page anchor
PROGRAMMABLE SMS
ERROR

This error occurs when ShortUrl is enabled and one or more URLs in the message are invalid.

Possible Causes

possible-causes page anchor

URLs can be invalid for several reasons, the most common being improper encoding. Special characters must be correctly encoded, and every URL should include a valid scheme and host.

Make sure all special characters in URLs are properly encoded before use. Invalid URLs often result from unescaped characters that break parsers or violate RFC 3986

Examples:

Invalid: https://example.com/hola/mañana Valid: https://example.com/hola/ma%C3%B1ana (the character ñ must be percent-encoded)

Invalid: https://example.com/callback?token=abc123== Valid: https://example.com/callback?token=abc123%3D%3D (trailing = padding must be encoded)

Invalid: https://example.com/path%test Valid: https://example.com/path%25test (a raw % is illegal unless followed by two hex digits; %25 represents %)