get-got / discord-downloader-go

A Discord bot program to download and otherwise handle files sent in Discord channels with extensive configuration. Can be used as a genuine Discord Bot or user account / self-bot
MIT License
277 stars 31 forks source link

2.5.1 - Midjourney 403 #134

Open kauffy opened 7 months ago

kauffy commented 7 months ago

I don't think I changed a setting, but maybe.. I keep getting messages like below where it indicates a failure to download that specific file-- except that file is available. My one thought is that the file already exists, because I'm feeding a previous image into the one I'm generating. If that's the case, it should just be skipped silently, methinks.

Gave up trying to download

https://s.mj.run/yqLcPaO62vo

after 3 failed attempts...

Failed - 403 UNAVAILABLE

discord-downloader-go v2.5.2-dev

image

get-got commented 7 months ago

This shouldn't have anything to do with settings and I experience the same with that link.

Do those kind of media links ever work with ddg?

404 would occur when the file is seemingly nonexistent, 403 means forbidden. The server is not allowing the bot to download, I thought maybe it was due to the redirect link but the destination link also 403's. Makes me think it may be related to the user-agent for the bot, but the bot already somewhat spoofs the user-agent and works for other stuff.

Not sure, I'll check it out when I get more time soon.

kauffy commented 7 months ago

I believe it has grabbed those in the past (image prompts)-- as I have a fair number of them in my folders that I don't think I put there.