session closing generates an erorr

UI.getCurrent().close();

This will generate an error: “end request after…”

I have this error too, this error generates only after you enable push.
Good to see that I am not the only one.
I added two images which show what happens. One displays what happens if you close from a different thread, the other from your own thread.
17699447.png
17699450.png

Had the same problem on logout, I’ve solved it by calling:

VaadinSession.getCurrent().getSession().invalidate(); 
UI.getCurrent().getPage().executeJavaScript("window.location.href=''"); 

Don’t know if it will help you at all! :slight_smile:

Thanks for the response Nick,

Just tested it but unfortunately this doesn’t solve it for me :(.
I’m using vaadin designer and my current version is 13.0.7