For me, the problem was trying to pass a filename in a url, with a dot. For example
"http://localhost:8080/something/asdf.jpg" //causes error because of '.jpg'
It could be solved by not passing the .jpg extension, or sending it all in a request body.