Every other request http 502 Error

Just set up Vaultwarden on a Synology NAS, have the ssl cert working etc. The odd thing is that literally every other request to the server causes an http 502 error. I can click the same button twice, the first time it errors, the second it succeeds. Any idea why?

Solve the issue for anyone ever looking for this in the future. I had entered the name of the NAS into the destination for my reverse proxy instead of “localhost”. Apparently it was having trouble resolving it for some reason, because after i changed it to “localhost” everything works fine.