minigalaxy icon indicating copy to clipboard operation
minigalaxy copied to clipboard

Crash after entering credentials

Open lotth opened this issue 5 years ago • 19 comments

Minigalaxy crashes every time after I enter my credentials (email, password and, first time, two-factor 4 gidit code). minigalaxy version 0.9.4 OS : Fedora 32 x64

Traceback (most recent call last): File "/usr/bin/minigalaxy", line 66, in main() File "/usr/bin/minigalaxy", line 60, in main window = Window(APPLICATION_NAME) File "/usr/lib/python3.8/site-packages/minigalaxy/ui/window.py", line 51, in init self.__authenticate() File "/usr/lib/python3.8/site-packages/minigalaxy/ui/window.py", line 128, in __authenticate authenticated = self.api.authenticate(refresh_token=token, login_code=result) File "/usr/lib/python3.8/site-packages/minigalaxy/api.py", line 28, in authenticate return self.__get_token(login_code) File "/usr/lib/python3.8/site-packages/minigalaxy/api.py", line 63, in __get_token self.active_token = response_params['access_token'] KeyError: 'access_token'

lotth avatar May 18 '20 06:05 lotth

Try launching with MG_DEBUG=1 minigalaxy then you can see what the server responds. Do not post the full log with this enabled until after you've removed you passwords and tokens from it, though.

sharkwouter avatar May 18 '20 06:05 sharkwouter

Same trace with MG_DEBUG=1. Could it be that Fedora did not compile minigalaxy with this option?

lotth avatar May 18 '20 06:05 lotth

Maybe I did not actually make auth priny what is it doing with MG_DEBUG. Could you try starting as minigalaxy --reset once. It might be an issue with the configuration file.

sharkwouter avatar May 18 '20 07:05 sharkwouter

Same effect.

lotth avatar May 18 '20 07:05 lotth

Shame, I'll need to look into this some more to see if I can reproduce this then. I'll probably find some time for this tonight, otherwise later this week.

sharkwouter avatar May 18 '20 07:05 sharkwouter

Just to make sure, you don't have a firewall configuration which would block this, right?

sharkwouter avatar May 18 '20 07:05 sharkwouter

No, I don't. Initial connection with the server seems to work as I receive requests for two-factor code, and associated email is sent correctly. I also tried with and without VPN, with no success.

lotth avatar May 18 '20 08:05 lotth

Okay, thanks. It's probably an issue with Minigalaxy then.

sharkwouter avatar May 18 '20 08:05 sharkwouter

I have not been able to reproduce this on the current master branch. I don't think the code for logging in has changed, though.

Could you try cloning the repo and running it?

sharkwouter avatar May 22 '20 09:05 sharkwouter

I tried cloning the master, same issue happens. It may be originating in my Fedora environment?

lotth avatar May 22 '20 21:05 lotth

Maybe, it could be the firewall.

sharkwouter avatar May 22 '20 22:05 sharkwouter

The last thing I can think of which might fix the problem is starting minigalaxy with the reset option from the command line: minigalaxy --reset

Otherwise I have no idea. I have not been able to reproduce this issue so far.

sharkwouter avatar Sep 03 '20 21:09 sharkwouter

Thank you for the advice. I tried but had the same problem. I'll retry after the next Fedora update.

lotth avatar Sep 03 '20 22:09 lotth

Might be related to #257

sharkwouter avatar Jan 12 '21 22:01 sharkwouter

@lotth could you check if this issue is fixed with current code from master branch?

makson96 avatar Jan 17 '21 14:01 makson96

Using the bin from master branch, the good news is that it does not crash. But the first time I entered my email and password (those which work on gog.com website), I received the 4-digits code by email, entered them and got back to the login window. In all the next attempts, it gets back to the login window every time without any more 4-digits code request (for which I receive no more email). I had no trace with MG_DEBUG=1 and no change after using --reset.

lotth avatar Jan 18 '21 23:01 lotth

We've implemented some fixes which may resolve this. @lotth would it be possible to test this once more?

sharkwouter avatar Apr 15 '21 07:04 sharkwouter

Sure. I just downloaded the master branch, and got the same behavior : first time I tried, I I entered login and password then received an email with the 4-digit code. After code entry in minigalaxy, it got back to the login/password window. On next attempts, I did not receive the emails with the code and minigalaxy reverted to the login/password without presenting the code entry fields. Weird thing that all subsequent attempts lead to the same behavior, whether I quit minigalaxy or not. No difference with --reset.

lotth avatar Apr 15 '21 20:04 lotth

I'm so confused by this, but thanks for testing again. I'm not sure what to do by this point.

sharkwouter avatar Apr 15 '21 20:04 sharkwouter