Skip to content

Mega.nz issues (not logged in, http error 402, etc) #257

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

Open
BakaBambi opened this issue Feb 23, 2025 · 14 comments
Open

Mega.nz issues (not logged in, http error 402, etc) #257

BakaBambi opened this issue Feb 23, 2025 · 14 comments
Labels
website plugin This issue is related to a website plugin

Comments

@BakaBambi
Copy link

Now I can't load the image like before. It shows error like image, can you help me?
Image

Image

Image

@aksskl
Copy link

aksskl commented Feb 23, 2025

For the time being, you have to create a mega_credentials.json file to get it working. Use the mega_credentials_example.json provided with patreondownloader as a template and place the newly created json file in the same location.

@Lirkalyn2
Copy link

For the time being, you have to create a mega_credentials.json file to get it working. Use the mega_credentials_example.json provided with patreondownloader as a template and place the newly created json file in the same location.

It works, thanks.

Do we know when it will be fixed ?

@aamood
Copy link

aamood commented Feb 23, 2025

I'm also having trouble downloading today. No error. But it stops at the same post every time and only grabs post descriptions and embeds. No images, videos, audio, etc. I tried starting with a fresh copy of PatreonDownloader, as well as adding a mega_credentials.json file with my login information as described above, but I'm experiencing the same result.

Here's my command for reference:

./PatreonDownloader.App.exe --url https://www.patreon.com/c/WataofBorisheavyrocks/posts --descriptions --embeds --json --campaign-images --log-save --use-sub-directories

@BakaBambi
Copy link
Author

Tôi cũng gặp sự cố khi tải xuống hôm nay. Không có lỗi. Nhưng nó dừng lại ở cùng một bài đăng mỗi lần và chỉ lấy mô tả bài đăng và nhúng. Không có hình ảnh, video, âm thanh, v.v. Tôi đã thử bắt đầu bằng một bản sao mới của PatreonDownloader, cũng như thêm mega_credentials.jsontệp có thông tin đăng nhập của tôi như mô tả ở trên, nhưng tôi vẫn gặp phải kết quả tương tự.

Đây là lệnh của tôi để bạn tham khảo:

./PatreonDownloader.App.exe --url https://www.patreon.com/c/WataofBorisheavyrocks/posts --descriptions --embeds --json --campaign-images --log-save --use-sub-directories

I tried it and it seems ok. The alternate account in the mega_credentials.json file is the mega.nz account, not the patreon account.

@aamood
Copy link

aamood commented Feb 24, 2025

I tried it and it seems ok. The alternate account in the mega_credentials.json file is the mega.nz account, not the patreon account.

I totally missed that OPs issue was related to the Mega plugin. My mistake.

But you're saying you were able to pull images/etc with that command? Not sure what I'm doing wrong. It's the same command I've had saved in the past and the same PatreonDownloader version. Strange.

@lapdants
Copy link

It works with your Patreon credentials in the json file, but it's not downloading everything like it used to. It seems like it goes up to a certain date and doesn't download images/content, although it will download the post descriptions.

@RogRog00
Copy link

It strangely solved my issues, before creating mega_credentials.json the app only seemed to scan the account but didn't download anything. Once i created the mega_credentials.json the app started downloading again, even though i'm sure the account i tested it on didn't have any mega link in them.

@Hecatom
Copy link

Hecatom commented Feb 26, 2025

I am having the same issue.
And creating the json doesnt really fix it.
Since while it is able to login, it still doesnt download anything, and just crashes/ends after some few posts

@aksskl
Copy link

aksskl commented Feb 26, 2025

@Hecatom Make sure that the mega plugin is actually signing in by adding the --log-level Debug command to see what's happening. When it doesn't work it says right at the beginning in red

FATAL !!!![MEGA]: Unable to initialize mega downloader, check email and password! No mega files will be downloaded in this session. !!!!

But I've noticed that even with the credentials file it stops working within a few hours. The solution I've found is to login into my mega account on a browser, go to settings, security, logout of all active sessions including the current browser session, and then log back into the same browser. Somehow that allows the mega plugin to login and run for an hour or so until it expires. The credentials don't last long and I seem to need to do this to get a new MegaApi token or something.

@AlexCSDev
Copy link
Owner

AlexCSDev commented Feb 27, 2025

Mega broke something on their side a while ago, even official apps/websites are having issues.

gpailler/MegaApiClient#248
https://www.reddit.com/r/MEGA/comments/1hmefp9/unable_to_login_using_megacmd_hangs/

I've been able to get mega downloading working semi-reliably by opening mega website in a browser (while logged in into the account set in mega_credentials.json) before launching PatreonDownloader.

If you do not care about downloading mega files you can just delete plugins/UniversalDownloaderPlatform.MegaDownloader.dll file for the time being.

@EmperorHaro
Copy link

How do I make a mega_credentials.json?

@conkerts
Copy link

I don't even see any mega files from that creator, why does it want to login for mega ?

@AlexCSDev AlexCSDev changed the title Can't download Mega.nz issues (not logged in, http error 402, etc) Mar 26, 2025
@AlexCSDev AlexCSDev pinned this issue Mar 26, 2025
@AlexCSDev AlexCSDev added the website plugin This issue is related to a website plugin label Mar 26, 2025
@AlexCSDev
Copy link
Owner

AlexCSDev commented Apr 5, 2025

Mega plugin will be updated in the next release to not crash the application if it cannot log in.

This doesn't solve the log in issue though, so for everyone willing to continue using mega plugin for the time being you can follow the recommendations provided by the mega themselves:

To continue using the MEGA API, please log in using an updated MEGA client, such as your web browser in incognito mode.
Once logged in successfully, please use the API again within 24 hours.

The details of why everything broke down can be read here: gpailler/MegaApiClient#248 (comment)

@TheSilverNuke
Copy link

TheSilverNuke commented Apr 23, 2025

There also seems to be an issue with downloading external files through dropbox, vimeo, and google drive or even just .rar files. It just fails to retrieve the URL or some of the time it just downloads a link into the folder as a txt file but doesn't actually have the content. I believe this MAY be the relevant error.

Unable to retrieve name for external entry of type ExternalUrl:

These videos and galleries don't even require for you to log in, you just need the relevant link or they are just embedded into the feed directly. How do I resolve this so I can just download all of the content in a single request instead of having to go post by post?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website plugin This issue is related to a website plugin
Projects
None yet
Development

No branches or pull requests