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

uro error #30

Open
Iamsajidkhan opened this issue Nov 3, 2022 · 1 comment
Open

uro error #30

Iamsajidkhan opened this issue Nov 3, 2022 · 1 comment
Labels
bug Something isn't working Priority: Medium

Comments

@Iamsajidkhan
Copy link

Iamsajidkhan commented Nov 3, 2022

cat urls.txt | uro > test

Traceback (most recent call last):
File "/usr/local/bin/uro", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/uro/uro.py", line 123, in main
for line in sys.stdin:
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

@s0md3v

@s0md3v s0md3v added the bug Something isn't working label Nov 13, 2022
@Sr4nd3rs0n
Copy link

Hi.

I've recently have this same issue. If you get this kind of problem and you don't want to complicate with encoding detection.

The solution is to add this try/except in the file:

  • /usr/local/lib/python3.11/dist-packages/uro/uro.py

uroErrorFixed

It will skip the links that have weird encoding, but it will merge all the others that are cool.

For @s0md3v , please don't leave this amazing project :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Medium
Projects
None yet
Development

No branches or pull requests

3 participants