We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When pastes contain non utf-8 characters, the decoding fails and downloading the paste is being stopped.
Errors logged at:
pastepwn/pastepwn/scraping/pastebin/pastebinscraper.py
Lines 96 to 100 in 1d9b82e
and:
Lines 123 to 140 in 1d9b82e
Example pastes:
2020-02-04 01:17:22,211 - pastepwn.scraping.pastebin.pastebinscraper - ERROR - 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte 2020-02-04 01:17:22,213 - pastepwn.scraping.pastebin.pastebinscraper - ERROR - An exception occurred while downloading the paste 'nDPF9r5b'. Skipping this paste! Exception is: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte 2020-02-04 01:19:19,130 - pastepwn.scraping.pastebin.pastebinscraper - ERROR - 'utf-8' codec can't decode byte 0xe1 in position 2262: invalid continuation byte 2020-02-04 01:19:19,132 - pastepwn.scraping.pastebin.pastebinscraper - ERROR - An exception occurred while downloading the paste 'aeC9BS25'. Skipping this paste! Exception is: 'utf-8' codec can't decode byte 0xe1 in position 2262: invalid continuation byte 2020-02-04 08:17:52,570 - pastepwn.scraping.pastebin.pastebinscraper - ERROR - 'utf-8' codec can't decode byte 0xe1 in position 2262: invalid continuation byte 2020-02-04 08:17:52,636 - pastepwn.scraping.pastebin.pastebinscraper - ERROR - An exception occurred while downloading the paste '0Cq4CYCH'. Skipping this paste! Exception is: 'utf-8' codec can't decode byte 0xe1 in position 2262: invalid continuation byte
The text was updated successfully, but these errors were encountered:
For this bug to be fixed, we need to use the raw bytes. That might break many analyzers.
Sorry, something went wrong.
Hi, I think that you have problem there: https://github.com/d-Rickyy-b/pastepwn/blob/1d9b82efa53d948f790b663a54d609150e65b32e/pastepwn/util/request.py#LL37C1-L42C22 You 'except' only TimeoutError add no except other errors. You need and regex in this part before decoding utf-8.
No branches or pull requests
When pastes contain non utf-8 characters, the decoding fails and downloading the paste is being stopped.
Errors logged at:
pastepwn/pastepwn/scraping/pastebin/pastebinscraper.py
Lines 96 to 100 in 1d9b82e
and:
pastepwn/pastepwn/scraping/pastebin/pastebinscraper.py
Lines 123 to 140 in 1d9b82e
Example pastes:
The text was updated successfully, but these errors were encountered: