Skip to main content
All CollectionsCommon Errors
URL encoding - Error: "Invalid URL"
URL encoding - Error: "Invalid URL"

"Invalid URL"` when trying to parse a parameter as part of a URL

Praise Magidi avatar
Written by Praise Magidi
Updated over 3 weeks ago

Message

Error: "Invalid URL" When trying to parse a parameter as part of a URL using `{@parameter}` notation parameter parsing.

Cause

When using {@parameter} notation, the whole URL will be URL encoded. This encoding will include the protocol and hostname. This means that if you specify a protocol (https://) as part of your URL, this will get the URL encoded to https%3A%2F%2F%2E, which is not a valid protocol and thus not a valid URL.

Resolution

To avoid this error, use handlebars parameter parsing instead.

Instead of `{@parameter}` , do `{{parameter}}. Handlebars parsing skips URL encoding.

Error Detail

```
Error: "Invalid URL"
```
Did this answer your question?