I had the same issue on ubuntu 22.04 LTS.
For me the issue is I was using the jupyter as a system service(so I could just visit the url directly any time).
If I just start a new instance from command line, this issue goes away.