[facebook] Download with metadata error over and over #6599
Closed
Description
So everytime some of the photos shows that error only when trying to pull metadata, hope this gets fixed soon it's really annoying
C:\data>gallery-dl https://www.facebook.com/photo.php?fbid=1156625586261770 --write-metadata --verbose
[gallery-dl][debug] Version 1.28.0 - Executable (stable/windows)
[gallery-dl][debug] Python 3.8.10
[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.3
[gallery-dl][debug] Configuration Files []
[gallery-dl][debug] Starting DownloadJob for 'https://www.facebook.com/photo.php?fbid=1156625586261770'
[facebook][debug] Using FacebookPhotoExtractor for 'https://www.facebook.com/photo.php?fbid=1156625586261770'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.facebook.com:443
[urllib3.connectionpool][debug] https://www.facebook.com:443 "GET /photo/...&set= HTTP/11" 200 None
[urllib3.connectionpool][debug] https://www.facebook.com:443 "GET /media/set/?set=... HTTP/11" 200 None
[facebook][debug] Active postprocessor modules: [MetadataPP]
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): scontent.fcai19-5.fna.fbcdn.net:443
[urllib3.connectionpool][debug] https://scontent.fcai19-5.fna.fbcdn.net:443 "GET /v/t39.30808-6/... HTTP/11" 200 647148
.\gallery-dl\facebook\Tesla\Timeline photos (a.585016060089395)\1156625586261770.jpg[facebook][error] An unexpected error occurred: UnicodeEncodeError - 'utf-8' codec can't encode characters in position 195-196: surrogates not allowed.
[facebook][debug]
Traceback (most recent call last):
File "gallery_dl\job.pyc", line 152, in run
File "gallery_dl\job.pyc", line 196, in dispatch
File "gallery_dl\job.pyc", line 364, in handle_url
File "gallery_dl\postprocessor\metadata.pyc", line 128, in run
File "gallery_dl\postprocessor\metadata.pyc", line 239, in _write_json
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 195-196: surrogates not allowed