401 Unauthorized in SSH client and File Editor addons

This error showed up after I installed Nginx addon and added an http block in configuration.yaml to enable secure access from outside the local network. I though it was caused by either Nginx addon or improper configuration in configuration.yaml so I stopped the addon and reversed all changes in yaml file by using home assistant cli. I also restarted the system. However, the error was still there, even after I reinstalled SSH client and File Editor addons. Anyone know what could’ve caused this, or at least where shall I look to find the cause?