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

Plex login redirecting back to Ombi login page #4408

Closed
sebinemeth opened this issue Nov 16, 2021 · 13 comments
Closed

Plex login redirecting back to Ombi login page #4408

sebinemeth opened this issue Nov 16, 2021 · 13 comments

Comments

@sebinemeth
Copy link

Describe the bug
I am having an issue with the Plex login (kind of the same as #3256 but Plex does not seem to be the problem). When I click on the Login with Plex option, the popup is showing the same Ombi login screen (https://ombi.remetelak.com/login/true), not the Plex authentication page. Clicking on the button again opens another popup window and so on. The only error message I could spot was shown on the console of the main window at the moment of clicking the button (the same happens in the popups if clicking the button):

ERROR TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': String contains non ISO-8859-1 code point.
    at main-es2015.e7356ac3ac8b71f9eb18.js:1
    at main-es2015.e7356ac3ac8b71f9eb18.js:1
    at Array.forEach (<anonymous>)
    at d.forEach (main-es2015.e7356ac3ac8b71f9eb18.js:1)
    at t._subscribe (main-es2015.e7356ac3ac8b71f9eb18.js:1)
    at t._trySubscribe (main-es2015.e7356ac3ac8b71f9eb18.js:1)
    at main-es2015.e7356ac3ac8b71f9eb18.js:1
    at s (main-es2015.e7356ac3ac8b71f9eb18.js:1)
    at t.subscribe (main-es2015.e7356ac3ac8b71f9eb18.js:1)
    at main-es2015.e7356ac3ac8b71f9eb18.js:1

To Reproduce
Steps to reproduce the behavior:

  1. Open login screen
  2. Click on Login with Plex
  3. Popup shows same login screen

Expected behavior
Popup should be redirected to Plex authentication page.

Screenshots
-- no additional info in screenshots --

Logs (Logs directory where Ombi is located)
Not applicable

Desktop (please complete the following information):

  • OS: MacOS, Android, Win10
  • Browser: Chrome, Firefox

Ombi Version (please complete the following information):

  • Version: 4.6.4 develop
  • Media Server: Plex
  • Database Type: SQLite

Additional context
Docker setup (linuxserver/ombi:development), traefik reverse proxy.

@github-actions
Copy link

Hi!

Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.

Have you looked at the wiki yet? https://docs.ombi.app/

Before posting make sure you also read our FAQ.

Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.

If we need more information or there is some progress we tag the issue or update the tag and keep you updated.

Thanks!

Ombi Bot.

@tidusjar
Copy link
Member

What happens when you do it locally and not through your reverse proxy?

@sebinemeth
Copy link
Author

What happens when you do it locally and not through your reverse proxy?

The same thing, the popup keeps redrecting to <ip>:<port>/login/true

@tidusjar
Copy link
Member

And what's In the console of the main browser and the tab ?

@sebinemeth
Copy link
Author

And what's In the console of the main browser and the tab ?

The console of the main tab shows the error that I pasted above, the console of the popup tab is empty...

@tidusjar
Copy link
Member

what's your browsers language set to?

tidusjar added a commit that referenced this issue Dec 11, 2021
… in a different language could not open the Plex OAuth window

#4408
@sebinemeth
Copy link
Author

sebinemeth commented Dec 12, 2021

what's your browsers language set to?

Hungarian, so that could be the issue.
Thanks for the fix @tidusjar, is it already on developer? I updated to 4.7.8 but the issue is still present...

@sebinemeth
Copy link
Author

sebinemeth commented Dec 12, 2021

If the problem really is the charset then ISO-8859-1 will still have issues with some characters in Hungarian (ő, ű, etc.). As far as I know ISO-8859-2 (Latin-2) would work for these, but a unicode charset would be even better.

@tidusjar
Copy link
Member

Can you change your language to English for example. Does it then work for you?

@sebinemeth
Copy link
Author

I tried to set the browser and ombi app language to english, same behavior...

@tidusjar tidusjar reopened this Dec 14, 2021
@tidusjar
Copy link
Member

Whats your Ombi application Name set to (if you have a custom one?) in Customization Settings

@sebinemeth
Copy link
Author

Okay, that was it. I had a Unicode bullet in my application name (•, U+2022), removing that it works! I can live without that symbol, but still, it would be nice to support Unicode or at least Latin-2. @tidusjar thanks for the support!

@tidusjar
Copy link
Member

I don't think that's in my control in that case. That's Plex rejecting the HTTP call due to it containing unicode. The only thing I can do is disallow any unicode characters in the Application Name in that case

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

No branches or pull requests

2 participants