Overview
The most probable reason for this error is that the HTTP URL contains {tokens} set to make the URL dynamic.
Typically, tokens get replaced with actual values during the runtime, but if the value is not set, or the value equals to null, empty tokens will remain.
Process
Make sure to set the not-empty values for the tokens.