Request cannot be constructed from a URL that includes credentials

I’m trying to purge a KeyCDN url in a script and get the following error, “Request cannot be constructed from a URL that includes credentials”.