Redirect leads to a 502 error

When I use the plugin and set a password to lock down the site, I get a 502 Bad Gateway error.
It seems that there is an additional query that appends to the URL. I then looked for any additional redirects and disabled 301 redirects but this sends me to the index page.