site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

"Disconnect from Site Kit" errors despite sign out success

Open tofumatt opened this issue 7 years ago • 5 comments

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

  1. Sign into any Site Kit account
  2. Click on your Google Account's name in the top-right corner of the page
  3. Select "Disconnect"
  4. Confirm by selecting the large "Disconnect" button
  5. Wait for error to appear in console; notice UI is not updated
  6. Refresh page to see sign out was successful

Screenshots

2019-09-09 16 57 41

Additional Context

  • PHP Version: 7.3.7
  • OS: MacOS 10.14
  • Browser Firefox Developer Edition 70.0b3 (64-bit)
  • Plugin Version develop branch
  • 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

tofumatt avatar Sep 09 '19 16:09 tofumatt

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.

marrrmarrr avatar Oct 10 '19 19:10 marrrmarrr

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?

marrrmarrr avatar Jan 10 '20 15:01 marrrmarrr

hey @cole10up, just checking if you might have had any luck identifying if this is still an issue?

marrrmarrr avatar Jan 21 '20 15:01 marrrmarrr

@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.

Site Kit by Google Dashboard ‹ googlekitlocal 10uplabs com — WordPress

cole10up avatar Jan 22 '20 06:01 cole10up

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

marrrmarrr avatar Jan 28 '20 14:01 marrrmarrr