Got Error 1101 when trying to access a file in R2 from custom route


I’m trying to access a R2 file through a web browser.
It works well for direct access like the tutorial of Securely access and upload assets with Cloudflare R2, on both of my worker’s routes.

Then I added a parameter in the http address to be checked if there’s a match in a KV, in this way, it only works when I use the default route, using another route( it’s like myDomain/myFile) would get Error 1101.

Any ideas?