"Disconnect from Site Kit" errors despite sign out success
Bug Description
A user can sign out of Site Kit by selecting the "Disconnect" option in the top-right menu, but after confirming they want to sign out and the HTTP request to disconnect their account is sent, the UI is not updated (even after the request is successful). The page remains in the same state and it appears the user is still signed in until a full-page reload is completed. Afterward it's obvious the user has, in fact, signed out.
An error uncaught exception: Object is raised after the sign out request's response is returned from the server.
(Related E2E issue: #252.)
Steps to reproduce
- Sign into any Site Kit account
- Click on your Google Account's name in the top-right corner of the page
- Select "Disconnect"
- Confirm by selecting the large "Disconnect" button
- Wait for error to appear in console; notice UI is not updated
- Refresh page to see sign out was successful
Screenshots

Additional Context
- PHP Version: 7.3.7
- OS: MacOS 10.14
- Browser Firefox Developer Edition 70.0b3 (64-bit)
- Plugin Version
developbranch - Device: Mac
This happens for several of my Google accounts which sign in without issue.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Changelog entry
I tried these steps on two separate sites, and after clicking "Disconnect", I get redirected to the main WP dashboard (which is the expected behaviour). @felixarntz let's have a look at this together tomorrow.
Still can't replicate this, seeing the "You revoked access to Site Kit for [site]" notification (WAI). @cole10up could you have a look to verify if this is still an issue?
hey @cole10up, just checking if you might have had any luck identifying if this is still an issue?
@marrrmarrr - tried a few different accounts. Using my local and Jurassic Ninja. Was unable to reproduce this. See below for my local running the latest develop that I built this evening.

Thanks for checking the different setups, @cole10up . Marking this as closed.