RobertKrajewski / Sync-my-L2P

DOWNLOAD HERE: https://github.com/RobertKrajewski/Sync-my-L2P/releases/latest
http://www.syncmyl2p.de/
GNU Lesser General Public License v3.0
82 stars 27 forks source link

NoSuchFlowExecutionException when trying to login #118

Closed jonded94 closed 5 years ago

jonded94 commented 6 years ago

When trying to authenticate in L2P for giving the needed API permissions to Sync-my-L2P, I receive the following error message (part of it in German):

"Ein Fehler ist aufgetreten: NoSuchFlowExecutionException"

Steps:

  1. I press on the "Login/Einloggen" Button in Sync-my-L2P
  2. A new window with a progess bar and the text "Authentifizierung notwendig. Browser öffnet automatisch" pops up
  3. A webrowser with the URL "https://sso.rwth-aachen.de/idp/profile/SAML2/Redirect/SSO?execution=e2s1" shows up, resulting in a webpage from the RWTH Single Login with the before mentioned error message "Ein Fehler ist aufgetreten: NoSuchFlowExecutionException".

I am using Linux, (K)ubuntu 18.04.

SebSdr commented 6 years ago

I was experiencing the same problem under Kubuntu 18.04 but found a temporary solution:

  1. Open Sync-my-L2P.
  2. Go to the 'Log' tab and change 'Log range' to 'Advanced'.
  3. Start login but cancel it immediately. You should see a URL in debug log and 'authorization pending' messages for some time.
  4. Copy the URL (https://oauth.campus.rwth-aachen.de/manage/?q=verify&d=< ID >) from debug log and authorize Sync-my-L2P using it.

I'm not sure how much time you have before the authorization will timeout but you should be able to figure things out from debug log if necessary.

jonded94 commented 6 years ago

@SebSdr

Thanks, that is actually a way that works.

justin-time commented 6 years ago

Hi, unfortunately I can not reproduce this bug. But could you check out this native debian package for Ubuntu 18.04: https://github.com/RobertKrajewski/Sync-my-L2P/releases/download/v2.3.0/sync-my-l2p_2.3.0-0.bionic_amd64.deb

jonded94 commented 6 years ago

Hey, thanks for your answer. I installed the .deb package, but unfortunately I face the same problem. Is there any way I could provide you more information that you can use for reproducing this bug? It seems to only happen under Kubuntu, KDE Plasma.

justin-time commented 6 years ago

I think this is not a Sync-my-L2P bug. You can fix it by changing the default web browser: Go to System Settings → Applications → Web Browser and setting parameter Open http and https URLs and change the entry to "with the following command:" → and type the name of your browser e.g "firefox".

There is an problem with xdg-open in Kubuntu, because by using the KDE environment xdg-open uses KIO to check an URL before opening the web browser. And it looks like KIO does not work with the authorization link for Sync-my-L2P.

jonded94 commented 6 years ago

@justin-time Thank you, that solved the problem. The error no longer occurs for me at all.

Do you happen to know how and where I could report that bug?