401 or 403 Error when trying to shutdown

sudo kopia server shutdown --address="http://[::1]:51515" --server-control-username=user@homeserver --server-control-password=PASSWORD_HERE

I get ERROR 401 Unauthorized or ERROR 403 Forbidden regardless of any change I try.

I do start the server with the --insecure flag.