How to fix snap binaries not found

I installed Microsoft teams

error: unknown command "teams", see 'snap help'. $PATH contains /snap/bin.

If I try to run teams like /snap/bin/teams

I get

2021/11/10 12:44:51.333958 cmd_run.go:1011: WARNING: cannot start document portal: write unix @->/run/user/1000/bus: write: broken pipe

output of snap version

snap    2.52.1
snapd   2.52.1
series  16
debian  9
kernel  4.9.0-7-amd64

system info

   _,met$$$$$gg.          xxxxxxxxxx 
,g$$$$$$$$$$$$$$$P.       ------------ 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 9.13 (stretch) x86_64 
 ,$$P'              `$$$.     Model: xxxxxxxxxxxxxxx
',$$P       ,ggs.     `$$b:   Kernel: 4.9.0-7-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 31 minutes 
 $$P      d$'     ,    $$P    Packages: 2043 
 $$:      $$.   -    ,d$$'    Shell: bash 4.4.12 
 $$;      Y$b._   _,d$P'      Resolution: xxxxxxxxx
 Y$$.    `.`"Y$$$$P"'         DE: GNOME 
 `$$b      "-.__              WM: GNOME Shell 
  `Y$$                        WM Theme: Adwaita 
   `Y$$.                      Theme: Adwaita [GTK2/3] 
 `$$b.                    Icons: Adwaita [GTK2/3] 
   `Y$$b.                 CPU: xxxxxxxx
      `"Y$b._             GPU: xxxxxxxxxx 
          `"""            Memory: xxxxxxxx