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

Program crashes on captcha solver #184

Open
tryformy opened this issue Jan 2, 2024 · 1 comment
Open

Program crashes on captcha solver #184

tryformy opened this issue Jan 2, 2024 · 1 comment

Comments

@tryformy
Copy link

tryformy commented Jan 2, 2024

This issue appears to be related to the domain https://platipus9999.pythonanywhere.com/ and the fact it's no longer active and not allowing for captchas to be solved, crashing the program.

Error in question:

Traceback (most recent call last):
File "C:\Users\no\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\a\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\a\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\a\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\a\OneDrive\Documents\s\TikTok-ViewBot-main\v2.py", line 221, in
Zefoy().main()
File "C:\Users\a\OneDrive\Documents\s\TikTok-ViewBot-main\v2.py", line 191, in main
self.driver.add_cookie(self.solve())
File "C:\Users\a\OneDrive\Documents\s\TikTok-ViewBot-main\v2.py", line 81, in solve
captcha_answer = post(f"https://platipus9999.pythonanywhere.com/", json={'captcha': encoded_image, 'current_time': datetime.now().strftime("%H:%M:%S")}).json()["result"]
File "C:\Users\a\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@RyujiXX
Copy link

RyujiXX commented Jan 13, 2024

found any fix?

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

2 participants