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

[artstation][error]HTTP request failed: 403: Forbidden for url tried updated pyOpenSSL #2527

Closed
BBlayne opened this issue Apr 25, 2022 · 17 comments

Comments

@BBlayne
Copy link

BBlayne commented Apr 25, 2022

Everything was working fine yesterday but stopped today.

When I try to download from Artstation I am met with this error:

[artstation][error] HTTP request failed: 403: Forbidden for url: https://www.artstation.com/users/ralphballesteros/quick.json

Here is verbose:

C:\Users\MyUserName>"W:\PathToGalleryDL\gallery-dl.exe" --verbose https://www.artstation.com/ralphballesteros
[gallery-dl][debug] Version 1.21.1 - Executable
[gallery-dl][debug] Python 3.7.9 - Windows-10-10.0.19041
[gallery-dl][debug] requests 2.27.1 - urllib3 1.26.9
[gallery-dl][debug] Starting DownloadJob for 'https://www.artstation.com/ralphballesteros'
[artstation][debug] Using ArtstationUserExtractor for 'https://www.artstation.com/ralphballesteros'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.artstation.com:443
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/ralphballesteros/quick.json HTTP/1.1" 403 None
[artstation][error] HttpError: '403 Forbidden' for 'https://www.artstation.com/users/ralphballesteros/quick.json'

Result of show pyOpenSSL:

C:\Users\MyUserName>pip3 show pyOpenSSL
Name: pyOpenSSL
Version: 22.0.0
Summary: Python wrapper module around the OpenSSL library
Home-page: https://pyopenssl.org/
Author: The pyOpenSSL developers
Author-email: cryptography-dev@python.org
License: Apache License, Version 2.0
Location: c:\users\MyUserName\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages
Requires: cryptography
Required-by:

I usually use the exe via the Windows CMD prompt; I went and installed Python to install pyOpenSSL and then used pip to attempt to install gallery-dl that way but just running "gallery-dl" or "gallery-dl.exe" without quotes in the CMD prompt after adding it to PATH didn't seem to work in case it needs the python version of gallery-dl or something; I don't really know what I'm doing after checking the previous issues on the topic.

@biggestsonicfan
Copy link

Getting the same on my end with Linux ver:

[gallery-dl][debug] Version 1.21.2-dev
[gallery-dl][debug] Python 3.8.13 - Linux-5.17.3-1-default-x86_64-with-glibc2.34
[gallery-dl][debug] requests 2.27.1 - urllib3 1.25.11
[gallery-dl][debug] Starting DownloadJob for 'https://www.artstation.com/proado/albums/all'
[artstation][debug] Using ArtstationUserExtractor for 'https://www.artstation.com/proado/albums/all'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.artstation.com:443
[urllib3.connectionpool][debug] https://www.artstation.com:443 "GET /users/proado/quick.json HTTP/1.1" 403 None
[artstation][error] HttpError: '403 Forbidden' for 'https://www.artstation.com/users/proado/quick.json'

@austblack88
Copy link

Same issue here.

@Hrxn
Copy link
Contributor

Hrxn commented Apr 26, 2022

Then it's a site change..

@biggestsonicfan
Copy link

Then it's a site change..

I mean it might be, but I can access the JSON files just fine in my browser. Possibly blocking some sort of useragent or something?

@Twi-Hard
Copy link

It works fine for me. I do use a custom user agent.

@slowthgt
Copy link

Having the same issue, using a custom useragent to mimic the latest firefox version didn't help

@Hrxn
Copy link
Contributor

Hrxn commented Apr 28, 2022

If you haven't tried this already... (it's a good habit in general):

Set the "user-agent" setting in your config to exactly the same User-Agent that gets used by your browser.. (the browser you use to browser, sign-in and use ArtStation with)

@TahliaKat
Copy link

I'm having the same issue, changing the user-agent didn't help.

I've tried with 3 different browser user agents and the 403 error still appears. However, going to the site on the browsers works.

@Twi-Hard
Copy link

Hmmmm..
I commented out the custom user-agent so gallery-dl uses the default and I was still able to download. I have my computer scheduled to update the artists I've saved once per day so I doubt you're blocked for using it too much.

@TahliaKat
Copy link

I was able to solve my issue.

I added "browser": "firefox" to the artstation portion of the config file (using a firefox user-agent) and now it seems to work.

@biggestsonicfan
Copy link

I was able to solve my issue.

I added "browser": "firefox" to the artstation portion of the config file (using a firefox user-agent) and now it seems to work.

This solved the issue for me! 🥂

@BBlayne
Copy link
Author

BBlayne commented Apr 28, 2022

I was able to solve my issue.

I added "browser": "firefox" to the artstation portion of the config file (using a firefox user-agent) and now it seems to work.

Also solved the issue for me! You're a Genius! Should I close my issue? I dunno what Github's etiquette is.

@mikebatnz
Copy link

I was able to solve my issue.

I added "browser": "firefox" to the artstation portion of the config file (using a firefox user-agent) and now it seems to work.

Awesome!

I was using a Safari useragent and adding "browser": "safari" also fixed it for me

"artstation": {
"browser": "safari",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15"
}

@BBlayne
Copy link
Author

BBlayne commented Apr 29, 2022

I was able to solve my issue.
I added "browser": "firefox" to the artstation portion of the config file (using a firefox user-agent) and now it seems to work.

Awesome!

I was using a Safari useragent and adding "browser": "safari" also fixed it for me

"artstation": { "browser": "safari", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15" }

Oh is that where the user agent bit is supposed to go? What do I put for Chrome?

@mikebatnz
Copy link

Oh is that where the user agent bit is supposed to go? What do I put for Chrome?

Try:

"artstation": { "browser": "chrome", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36" }

@BBlayne
Copy link
Author

BBlayne commented May 1, 2022

Oh is that where the user agent bit is supposed to go? What do I put for Chrome?

Try:

"artstation": { "browser": "chrome", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36" }

Alrighty I tried this but sadly didn't seem to work. Only "browser": "firefox" seems to work. No need for user-agent for whatever reason.

@mikf
Copy link
Owner

mikf commented May 27, 2022

The latest release uses "browser": "firefox" by default, so I guess this can be closed.

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

9 participants