-
-
Notifications
You must be signed in to change notification settings - Fork 989
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
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 13-15: ordinal not in range(256) #6633
Comments
I think you are setting some weird - non-latin1 encodable - cookie or general header values for What do your
You need to either update PATH or use |
Now it says something about cloudflare challenge or something (for both with and without the py -m thing) instead of problem with encodable thingy, and I literally just came back from work so I did not change anything until this time. C:\Users\USERNAME>py -m gallery_dl https://www.fanbox.cc/@memechan --verbose I was originally using --cookies pathtotheexportedcookies.txt command, but I manually added them in the config file just now too (my config file was originally missing cf_clearance and __cf_bm, if that is of any relevance. I do not remember when the config file first appeared or how I got it, but I am absolutely sure I did not make it myself). I don't know anything about two config files, I only see one in the same folder as the gallery-dl.exe. "fanbox": { |
I reinstalled python 3.12.8, making sure to check the box that says add to PATH before finishing installation. Now gallery-dl command is accepted even after I delete the standalone executable, but the cloudflare challenge thing still persists. I just tested it with another website (subscribestar) and it worked fine. |
Exported cookies .txt file content: Netscape HTTP Cookie Filehttp://curl.haxx.se/rfc/cookie_spec.htmlThis is a generated file! Do not edit..fanbox.cc TRUE / TRUE 1738049376 p_ab_id 0 |
Good. You need this See #5791 |
C:\Users\USERNAME>gallery-dl https://www.fanbox.cc/@msmspc --verbose
[gallery-dl][debug] Version 1.28.1 - Executable (stable/windows)
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.19045
[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.3
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\gallery-dl.conf', 'C:\Users\USERNAME\gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://www.fanbox.cc/@msmspc'
[fanbox][debug] Using FanboxCreatorExtractor for 'https://www.fanbox.cc/@msmspc'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.fanbox.cc:443
[fanbox][error] An unexpected error occurred: UnicodeEncodeError - 'latin-1' codec can't encode characters in position 13-15: ordinal not in range(256). Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[fanbox][debug]
Traceback (most recent call last):
File "gallery_dl\job.pyc", line 151, in run
File "gallery_dl\extractor\fanbox.pyc", line 59, in items
File "gallery_dl\extractor\fanbox.pyc", line 340, in _pagination_creator
File "gallery_dl\extractor\common.pyc", line 174, in request
File "requests\sessions.pyc", line 589, in request
File "requests\sessions.pyc", line 703, in send
File "requests\adapters.pyc", line 667, in send
File "urllib3\connectionpool.pyc", line 789, in urlopen
File "urllib3\connectionpool.pyc", line 495, in _make_request
File "urllib3\connection.pyc", line 440, in request
File "urllib3\connection.pyc", line 354, in putheader
File "http\client.pyc", line 1225, in putheader
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 13-15: ordinal not in range(256)
Setup: using standalone executable, as for unknown reason any installations attempted via py -3 install commands are not recognized as existing (typing in gallery-dl in command prompt after the installation and without the standalone executable results in the command not being recognized).
No problems when using it on kemono sites.
Changed system locale and checked on the utf-8 beta feature thingy too, as I saw some references to locale and encoding from past issues. Problem persists even after computer restart.
I have basically zero proficiency in programming and python, so I will need detailed step-by-step instructions (as in go look for this in this folder, paste this command in command prompt, etc) to even acquire additional information if needed.
The text was updated successfully, but these errors were encountered: