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

Allow use of GITHUB_TOKEN when not sponsoring Zurg #77

Open
jopsis opened this issue Oct 18, 2024 · 8 comments
Open

Allow use of GITHUB_TOKEN when not sponsoring Zurg #77

jopsis opened this issue Oct 18, 2024 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@jopsis
Copy link

jopsis commented Oct 18, 2024

Describe the bug

Failed to recreate the container.

Oct 18, 2024 23:15:13 - INFO -

 _______  ______       _______           _______  _______
(  ____ )(  __  \     / ___   )|\     /|(  ____ )(  ____ \
| (    )|| (  \  )    \/   )  || )   ( || (    )|| (    \/
| (____)|| |   ) |        /   )| |   | || (____)|| |
|  _____)| |   | |       /   / | |   | ||     __)| | ____
| (      | |   ) |      /   /  | |   | || (\ (   | | \_  )
| )      | (__/  )     /   (_/\| (___) || ) \ \__| (___) |
|/       (______/_____(_______/(_______)|/   \__/(_______)
                (_____)
                        Version: 2.9.1



Oct 18, 2024 23:15:13 - INFO - Setting up Zurg
Oct 18, 2024 23:15:13 - INFO - Setting up Zurg w/ RealDebrid instance in directory: /zurg/RD/
Oct 18, 2024 23:15:13 - INFO - Fetching latest zurg release.
Oct 18, 2024 23:15:14 - ERROR - Failed to fetch https://api.github.com/repos/debridmediamanager/zurg/releases/latest after 5 attempts.
Oct 18, 2024 23:15:14 - ERROR - Error: Unable to access the repository API.
Oct 18, 2024 23:15:14 - ERROR - An error occurred: Failed to get the latest release version.

Access to this url https://api.github.com/repos/debridmediamanager/zurg/releases/latest gets the next error:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/releases/releases#get-the-latest-release",
  "status": "404"
}

To Reproduce

Recreate from zero the container.

Please complete the following information:

  • OS: LibreELEC
  • Version: 12.0.1
  • Supporting Applications: docker, gluetun
@jopsis jopsis changed the title ERROR - Failed to fetch https://api.github.com/repos/debridmediamanager/zurg/releases/latest after 5 attempts ERROR - Failed to fetch https://api.github.com/repos/debridmediamanager/zurg/releases/latest Oct 18, 2024
@jopsis
Copy link
Author

jopsis commented Oct 21, 2024

I review the code

If I put github token as env var, the downloader try to download from zurg (Sponsors only) repo instead zurg-testing.

https://github.com/debridmediamanager/zurg-testing

image

@I-am-PUID-0
Copy link
Owner

Ah. Yes, I forgot it will try to pull from the sponsored repo. Are you still having issues with the GitHub rate limit?

@jopsis
Copy link
Author

jopsis commented Oct 21, 2024

Ah. Yes, I forgot it will try to pull from the sponsored repo. Are you still having issues with the GitHub rate limit?

Yes... ☹️ ☹️ ☹️ ☹️ ☹️

I used gluetun with windscribe to be able to get another IP and I was able to create the container, but then I have to change all containers (plex, jackett, etc) to network_mode: container:gluetun and everything works much slower.

For now, I don't want to use gluetun because my ISP hasn't banned anything, but this ‘ban’ for github :-(

Any idea to resolv the problem with github?

@I-am-PUID-0
Copy link
Owner

Can you set PDZURG_LOG_LEVEL=DEBUG and provide the logs?

@jopsis
Copy link
Author

jopsis commented Oct 21, 2024

Is activated

image

but don´t show more data

image

And, after of this 3000 seconds, fail with "ERROR - Failed to fetch https://api.github.com/repos/debridmediamanager/zurg-testing/releases/latest after 5 attempts."

@I-am-PUID-0
Copy link
Owner

From the host, try docker exec -it pd_zurg ping api.github.com

@jopsis
Copy link
Author

jopsis commented Oct 21, 2024

From the host, try docker exec -it pd_zurg ping api.github.com

I have connection:

image

I forked your project, change https://github.com/I-am-PUID-0/pd_zurg/blob/master/zurg/download.py to zurg-testing If you set token or no, create a new docker image from my local modifications and now works, download from zurg-testing with auth token

@I-am-PUID-0
Copy link
Owner

Ok. I'll see if I can modify the setup process to allow for the use of the GITHUB_TOKEN even if not sponsoring Zurg.

@I-am-PUID-0 I-am-PUID-0 self-assigned this Oct 22, 2024
@I-am-PUID-0 I-am-PUID-0 added the enhancement New feature or request label Oct 22, 2024
@I-am-PUID-0 I-am-PUID-0 moved this to Todo in pd_zurg roadmap Oct 22, 2024
@I-am-PUID-0 I-am-PUID-0 changed the title ERROR - Failed to fetch https://api.github.com/repos/debridmediamanager/zurg/releases/latest Allow use of GITHUB_TOKEN when not sponsoring Zurg Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants