Maybe you should ensure that the url does not end with `'/'` (or remove it if it does)?