readtomyshoe icon indicating copy to clipboard operation
readtomyshoe copied to clipboard

Add note about nginx URL normalization

Open rozbb opened this issue 3 years ago • 0 comments

I ran into this issue. A filename had a > in the title, and the server would return a 400 (Bad Request) error when I attempted to Add to Queue. The reason: nginx was normalizing the percent-encoded URL before it got passed to readtomyshoe-server. It put > directly in the URL, making the URL invalid, and forcing hyper to choke and return a 400.

Solution: make sure your proxy_pass line in nginx is specified WITHOUT a URI. In my case, that means making sure there is no trailing backslash in the proxy_pass line below:

location / {
        proxy_pass http://localhost:32148;
        ...
}

More info here

rozbb avatar Aug 07 '22 06:08 rozbb