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

Deviantart using default API and not my credentials in conf file 429 Error #2332

Open
LockoutNex opened this issue Feb 23, 2022 · 18 comments
Open

Comments

@LockoutNex
Copy link

LockoutNex commented Feb 23, 2022

PS C:\Users\Nex> gallery-dl -v https://www.deviantart.com/junejenssen/gallery/all`
[gallery-dl][debug] Version 1.20.5 - Executable
[gallery-dl][debug] Python 3.7.9 - Windows-10-10.0.19041
[gallery-dl][debug] requests 2.27.1 - urllib3 1.26.8
[gallery-dl][debug] Starting DownloadJob for 'https://www.deviantart.com/junejenssen/gallery/all'
[deviantart][debug] Using DeviantartGalleryExtractor for 'https://www.deviantart.com/junejenssen/gallery/all'
[deviantart][debug] Using default API credentials (client-id 5388)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.deviantart.com:443
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/user/profile/junejenssen HTTP/1.1" 429 105
[deviantart][debug] {"error":"application_api_threshold","error_description":"Client request limit reached.","status":"error"}
[deviantart][warning] API responded with 429 Too Many Requests. Using 1s delay.
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/user/profile/junejenssen HTTP/1.1" 429 105
[deviantart][debug] {"error":"application_api_threshold","error_description":"Client request limit reached.","status":"error"}
[deviantart][warning] API responded with 429 Too Many Requests. Using 2s delay.

Here is my conf file for Deviantart:

"deviantart":
{
"client-id": "myid",
"client-secret": "myclientsecret",
"refresh-token": "mytoken",
"comments": false,
"extra": false,
"flat": true,
"folders": false,
"include": "gallery",
"journals": "html",
"mature": true,
"metadata": false,
"original": true,
"wait-min": 0
},

I have followed https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractordeviantartclient-id--client-secret to see if that works and it doesn't. It was all working fine before i reformatted my reset up everything like I did before the reformat, but now I just get 429 error all the time.

@AlttiRi
Copy link

AlttiRi commented Feb 23, 2022

"client-id": "myid",
"client-secret": "myclientsecret",

Are you sure that gallery-dl sees the config file?
Maybe you created gallery-dl.conf.txt instead of gallery-dl.conf?

Again, just follow this guide: #2143 (comment)

@VanishingBlaze
Copy link

I'm getting the same error. Do I need to edit the existing config or create a whole new one?

@AlttiRi
Copy link

AlttiRi commented Feb 27, 2022

If you have created it before, just edit it, only add the necessary information ("client-id" and "client-secret") in deviantart extractor properties.

@VanishingBlaze
Copy link

I haven't created one. Just tried the one that was already in there

@AlttiRi
Copy link

AlttiRi commented Feb 27, 2022

I would leave the default config without changes. You just extends/partially-overwrites it with your own one.

@VanishingBlaze
Copy link

Alright and just to clarify. The twitter part is important and for the id/secret I use the one I setup on the whitelist?

@AlttiRi
Copy link

AlttiRi commented Feb 28, 2022

Of course, no. It's just a recommendation.
In particular, it's a way to verify that the config file is in use.
The most minimal config for your need:

{
    "extractor":
    {
        "deviantart":
        {
            "client-id": "12345",
            "client-secret": "0123456789abcdef0123456789abcdef"
        }
    }
}

But I would recommend to use the config from my guide.
I sure it uses the better filename patter than the default config.

@VanishingBlaze
Copy link

When I put it in I'm still getting the error and it's at the point now where it goes to 30s and loops that

@AlttiRi
Copy link

AlttiRi commented Feb 28, 2022

12345
0123456789abcdef0123456789abcdef
It is a fake data. Demonstration only. Use your own ones.

Did you read #2143 (comment)?

@VanishingBlaze
Copy link

Yes. I entered the data I got from the whitelist and reset the cache but still no luck

@AlttiRi
Copy link

AlttiRi commented Feb 28, 2022

Did you try to follow my guide exactly?

On 4th step did you download the image with the name:

  • [twitter] SpaceX—2021.12.22—1473671809870725121—FHOHgQGUYAIM3r9.jpg

?

@VanishingBlaze
Copy link

Yes, but the file name seemed like it's default instead of having the date and such

@AlttiRi
Copy link

AlttiRi commented Feb 28, 2022

So, it only means that the config is not used.

Did you really created it with the correct name and in the correct place with the command from step 1, then open exactly this file with the command from step 2?

@VanishingBlaze
Copy link

I was using the one that was in the docs folder and just adding the command into it. Is that not the right location? Or do I need to make a new config?

@AlttiRi
Copy link

AlttiRi commented Feb 28, 2022

Why not just to follow the guide?
If you will follow my guide it will work 100 %.

@VanishingBlaze
Copy link

Ok I'll start at step one again. Just got make sure I put the config in the right spot does it go in the docs or the where userprofile is (is that where things like the folders and setup is located?)

@AlttiRi
Copy link

AlttiRi commented Feb 28, 2022

The step 4 will show that everything is OK.

The file (gallery-dl.conf) should be in %USERPROFILE% (C:\Users\Username\, for example).
The command from the first step does it.

@VanishingBlaze
Copy link

I think I have the profile(if that's the folders and other stuff like cookies go) on my D: drive , though my downloads go to my C: drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants