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

Failed to sync users from Tautulli Error when attempting to run Unwrap #104

Open
subi75 opened this issue Dec 15, 2024 · 2 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@subi75
Copy link

subi75 commented Dec 15, 2024

When initially starting to run Wrapperr v3.2.7 on a Windows desktop (using the .exe version), I set it up appropriately to connect to my Tautulli server (running on a different system in a different subnet), and using the test button it reports back successful.
When I then go into Wrapperr, I'm prompted to log in with my Plex creds (which appear to be accepted no issues) but when I click the Unwrap button, I see a command prompt (running Wrapperr on Windows) window briefly appear then it closes immediately (it flashes on screen for a max of 1 second before auto closing) and then I'm presented with the below error
image

When looking in the wrapperr.log file I see the below text:

2024/12/15 21:20:26 Admin login session JWT validated.
2024/12/15 21:20:26 Retrieved Wrapperr configuration. - Origin: 127.0.0.1
2024/12/15 21:20:35 Retrieved Wrapperr version. - Origin: 127.0.0.1
2024/12/15 21:21:11 Created and retrieved Plex Auth login JWT Token. - Origin: 127.0.0.1
2024/12/15 21:21:11 Retrieved Wrapperr version. - Origin: 127.0.0.1
2024/12/15 21:21:12 Plex Auth JWT Token validated using Plex API. - Origin: 127.0.0.1
2024/12/15 21:21:12 Shareable links are not enabled in the Wrapperr configuration.
2024/12/15 21:21:15 Retrieved Wrapperr functions. - Origin: 127.0.0.1
2024/12/15 21:21:15 New wrap request.
2024/12/15 21:21:15 Checking Tautulli server 'tautulli'.
2024/12/15 21:21:15 Getting users from Tautulli server 'tautulli'.
2024/12/15 21:21:15 Failed to parse Tautulli response. Error: json: cannot unmarshal string into Go struct field TautulliUser.response.data.user_id of type int
2024/12/15 21:21:15 Failed to get users from Tautulli. Error: Failed to parse Tautulli response.
2024/12/15 21:21:15 Failed to get users. Error: Failed to get users from Tautulli.
2024/12/15 21:21:15 Failed to sync users from Tautulli. Error: Failed to get users.

Noting the following with my config:
My windows PC is in a different subnet to both the Plex server and Tautulli server (Plex and Tautulli are in the same subnet together, but on different hosts/IPs)
I have firewall restrictions in place between subnets, only allowing connectivity from the PC to the 2 servers to reach Plex & Tautulli on their appropriate ports. I do also run a seperate montioring app on my PC that connects to Tautulli and monitors its performance via the API without issue so I know that API connectivity from the PC to the Tautulli server is fine.
Running Wrapperr locally on a Raspberry Pi (using the appropriate ARM64 variant on Debian Bookworm ARM64) in the same subnet as Plex & Tautulli, I get the exact same error, so this is not a Windows to Tautulli connectivity issue, nor does it appear to be a cross-subnet/firewall related issue.
Other things I have tried is:
Basic Auth enabled or disabled - no difference
Plex Auth enabled or disabled - no difference
Using the Sync Users option from Settings fails with same error

@aunefyren
Copy link
Owner

Mmm, it could be Tautulli changed their API, but seems unlikely as my Wrapperr still functions.

2024/12/15 21:21:15 Failed to parse Tautulli response. Error: json: cannot unmarshal string into Go struct field TautulliUser.response.data.user_id of type int

Seems that maybe the user ID retrieved is not an int? Hard to know without knowing the Tautulli response. I might have to patch Wrapperr to log this properly.

@aunefyren aunefyren added bug Something isn't working help wanted Extra attention is needed labels Dec 15, 2024
@gouthamravee
Copy link

I'm seeing the same problem, here's a snipped from my log


wrapperr  | 2024/12/25 15:34:44 Checking Tautulli server 'Tau'.
wrapperr  | 2024/12/25 15:34:44 Getting users from Tautulli server 'Tau'.
wrapperr  | 2024/12/25 15:34:44 Failed to get users. Error: invalid character '}' after top-level value
wrapperr  | 2024/12/25 15:34:44 Failed to get ignored users. Error: Failed to get users.
wrapperr  | 2024/12/25 15:34:44 Failed to sync users from Tautulli. Error: Failed to get ignored users

Not much more info than that unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants