mirror of
https://github.com/tubearchivist/tubearchivist-plex.git
synced 2026-03-23 20:37:11 +00:00
[GH-ISSUE #32] [Installation Help]: ERROR - Error connecting to TubeArchivist with URL https://tube.mydomain.com | Exception: 'HTTP Error 403: Forbidden' #14
Labels
No labels
bug
bug
documentation
duplicate
enhancement
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tubearchivist/archived-tubearchivist-plex#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Wh1t3Rose on GitHub (Dec 13, 2023).
Original GitHub issue: https://github.com/tubearchivist/tubearchivist-plex/issues/32
Installation instructions
Operating System
Unraid 6.12.5
Your installation or setup question
I am running my domain behind cloudflare. My domain is proxied and is behind a cloudflare tunnel. I can not use DNS only with CF Tunnels.
I made sure my API key matches with TubeArchivist and is correct both in the Plex Library Adavnced tab as well as in the ta_config.json file
The domain is correct as well. I changed it in the log for security reasons
Relevant log output
@Wh1t3Rose commented on GitHub (Dec 13, 2023):
Dug into CF firewall logs and found it is being picked up as a bot and being blocked.
I have to go to bed now but will see if I can whitelist this via IP + UserAgent. It's coming from my IP obviously so should be safe unless I have a different rouge python script on my network lol
@Wh1t3Rose commented on GitHub (Dec 13, 2023):
Yep I was right. Was able to solve it quickly. Everything is starting to populate in Plex now. I have over 5K videos so it is gonna take a while to populate into Plex
Here is what my rule looks like in CF Firewall for future people using Cloudflare Proxied domains or CF Tunnels
I know other people are gonna have this issue as most people using Cloudflare are using Firewall + Bot Protection so I am gonna leave all this here.
@Wh1t3Rose commented on GitHub (Dec 13, 2023):
@lamusmaser commented on GitHub (Dec 13, 2023):
Thanks for the additional details. I'll close the ticket, but it's a good resource for the future.
@mylogon341 commented on GitHub (Mar 13, 2025):
Thanks @Wh1t3Rose for this. I've been banging my head against the wall on this one for hours since my config broke after migrating my docker config and changing the TA url to a url rather than IP address - it didn't even cross my mind that Cloudflare would be causing these 403s.
I know it's a bit of a niche issue @lamusmaser, but considering how unhelpful the logs are on this, would it be fair to add this to the troubleshooting section in the readme, or even to add a log output in the script that catches 403 with something like
"HTTP 403: Forbidden. Your instance may be behind a firewall such as Cloudflare"
@lamusmaser commented on GitHub (Mar 13, 2025):
Because 403 can happen for a lot of reasons, and because it isn't recommended to use Cloudflare in relation to media sharing, I don't think adding the noted error to the logs is appropriate.
Can you (@mylogon341 or @Wh1t3Rose ) open a new Issue, referencing this, to add this as an edge case troubleshooting step to the README? Then I can properly plan for it with a future release when I'm updating the README.