jorenn92 / Maintainerr

Looks and smells like Overseerr, does the opposite. Maintenance tool for the Plex ecosystem
https://maintainerr.info
MIT License
783 stars 14 forks source link

Can't login to APIs #1118

Closed brando56894 closed 3 months ago

brando56894 commented 4 months ago

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

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):

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

ydkmlt84 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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.