Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login stays on Connecting #105

Closed
ManuNovas opened this issue Jul 19, 2019 · 8 comments
Closed

Login stays on Connecting #105

ManuNovas opened this issue Jul 19, 2019 · 8 comments

Comments

@ManuNovas
Copy link

πŸ€·πŸ½β€β™‚οΈ Current Behaviour

When I'm trying to connect my google Account, it stays on green "Connecting" window.

🎯 Expected Behaviour

I saw that this issue fixed on Ubuntu 18.x but appear again on Ubuntu 19.04

πŸ‘Ÿ Steps to Reproduce (S2R)

  1. Click on SingUp with Google:
    image
  2. It appear login form from google but shortly:
    image
  3. After that, appear the green window
    image

🏑 Environmental Context

App Version
v9.0.9
Installation Type
Setup: Default with rpm package
Operating System
Ubuntu 19.04

@btaens
Copy link
Contributor

btaens commented Jul 23, 2019

The issue seems to stem from the app attaching a 'did-fail-load' event listener to the WebView that is responsible for the Google OAuth login.

If you check, you can see the issue is not present when you login through Facebook.

Google on the other hand, seems to call a CheckConnection endpoint that it immediately cancels (not sure why, must be some authentication thing), which the pb-for-desktop event handler catches, even though it's a -3 user aborted event, and sends the offline IPC message, which in turn triggers the spinner animation.

Relevant code is at:

/**
* @listens webviewViewElement#Event:did-fail-load
*/
webviewViewElement.addEventListener('did-fail-load', () => {
logger.debug('webviewViewElement#did-fail-load')
onOffline()
})

@AskAlice
Copy link

AskAlice commented Jul 31, 2019

@btaens can you build and release? This really breaks for me. Also doesn't work on facebook
edit: a fix I found is, hitting ctrl+shift+I then deleting the spinner element

@ManuNovas
Copy link
Author

Thank You, Last update allow me login on google.

sidneys added a commit that referenced this issue Nov 14, 2019
fix(main-renderer): fixes spinner showing on google login (#105)
@sidneys sidneys reopened this Nov 14, 2019
@sidneys
Copy link
Owner

sidneys commented Nov 14, 2019

@ManuNovas The newest release addressed this issue and was just deployed - looking forward to your feedback: https://github.com/sidneys/pb-for-desktop/releases

@sidneys
Copy link
Owner

sidneys commented Nov 26, 2019

@ManuNovas @btaens @AskAlice

The application was just deployed in version 10.2.0, and the issue could not be reproduced on either macOS or Ubuntu, thus this issue will be closed. If it should however persist or reoccur, please add your feedback.

Kind regards, S

@sidneys sidneys closed this as completed Nov 26, 2019
@jhg03a
Copy link

jhg03a commented May 22, 2023

This appears to have come back with v11.0.2 on an m2 mac.

@TechnoSwiss
Copy link

Also present again with v11.0.2 on Win10, getting around it with developer mode and deleting the spinner element.

@SC7639
Copy link

SC7639 commented Jul 25, 2023

Also, present again for me on mac os v11.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants