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

Can't login to APIs #1118

Closed
brando56894 opened this issue Jun 1, 2024 · 4 comments
Closed

Can't login to APIs #1118

brando56894 opened this issue Jun 1, 2024 · 4 comments

Comments

@brando56894
Copy link

brando56894 commented Jun 1, 2024

Edit: this isn't specific to Plex apparently, Radarr and Sonarr shows this issue as well.

Regardless of what URLs are used I get the following reports in the container log when I attempt to login to the Plex server's API. I am able to authenticate with Plex Inc's servers so that it will grab the list of servers associated with my account.

[maintainerr] | 01/06/2024 15:49:31  [WARN] [PlexApiService] Plex api communication failure.. Is the application running?
[maintainerr] | 01/06/2024 15:49:31  [DEBUG] [PlexApiService] Cannot read properties of undefined (reading 'queryWithCache')
[maintainerr] | 01/06/2024 15:49:31  [DEBUG] [SettingsService] Cannot read properties of undefined (reading 'version')

It lists 8 addresses, both secure and insecure, but only two of them are the IPs of my server (the others are in private address spaces, which is interesting considering I'm using host mode).

To Reproduce

  • Start with a fresh container, Maintainerr is using bridge mode with the necessary ports exposed and Plex is using host mode.
  • Click authenticate and sign in via the Plex SSO, click refresh, select a server, hit Test Server
  • The following error shows up in the UI: Connection failed! Please check and save your settings which shows the above errors

Expected behavior
I'm able to authenticate the the Plex Server's API

Screenshots
List of servers, mine is 192.168.1.7, not sure why it shows the others, they don't show under Authorized Servers in Plex.
image

After clicking Test Server It doesn't matter if I use the server from the dropdown or enter it manually , the same error shows
image

Device (please complete the following information):

  • OS: Arch Linux with Docker
  • Version: (Docker server) 26.1.0

Other Info
Other apps have no issues logging into and using Plex's API

@brando56894 brando56894 changed the title Can't login to local Plex API Can't login to APIs Jun 1, 2024
@ydkmlt84
Copy link
Contributor

ydkmlt84 commented Jun 3, 2024

This may not be your problem but the Test Saved button doesn't work unless you click on save changes first. Then Test Saved.

Well, I should probably clarify. The Test Saved button test what is saved. If you don't save changes first, the button is testing what was there before the changes were saved. Which is technically nothing. So you won't have a successful connection test.

@brando56894
Copy link
Author

Yeah I think that was it, I said "screw it" and hit save anyway and then went to the homepage and noticed it showed everything for Plex. There should probably be a warning for this IMO.

@ydkmlt84
Copy link
Contributor

ydkmlt84 commented Jun 3, 2024

A warning that states, "clicking test saved, tests the saved config and not whatever you had in there before you saved it"? Or maybe something like "make any configuration changes, click on save changes, then test saved"

@jorenn92
Copy link
Owner

jorenn92 commented Jun 5, 2024

I named it 'Test Saved' to indicate that it tests the saved configuration. While I'm aware this isn't ideal, it should test the current input, it was the quickest way to implement a basic testing feature at the time.

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

3 participants