FuckingToasters / discord-phone-verifier

Mass Verifing a list of discord tokens by phone.
Creative Commons Zero v1.0 Universal
65 stars 13 forks source link

Error while requesting code via vaksms #12

Closed NinaSteve closed 1 year ago

NinaSteve commented 1 year ago

[] Solving captcha... please be patient! [+] Successfully requested verification code! Exception in thread Thread-4 (verify): Traceback (most recent call last): File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(
self._args, self._kwargs) File "C:\Users\USER\Desktop\Pictures\Phone-Verify\discord-phone-verifier\new version\main.py", line 221, in verify VERIFYCODE = waitsms() File "C:\Users\USER\Desktop\Pictures\Phone-Verify\discord-phone-verifier\new version\main.py", line 193, in waitsms if str(PHONESERVICE).lower() == "vaksms": waitcount, verifycode = vaksms.getcode() File "C:\Users\USER\Desktop\Pictures\Phone-Verify\discord-phone-verifier\new version\plugins\phoneservices\vaksms.py", line 73, in getcode with requests.Client() as client: response = client.get(url).json() File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx_models.py", line 743, in json return jsonlib.loads(self.text, kwargs) File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\USER\AppData\Local\Programs\Python\Python310\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)

FuckingToasters commented 1 year ago

[] Solving captcha... please be patient! [+] Successfully requested verification code! Exception in thread Thread-4 (verify): Traceback (most recent call last): File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(self._args, self._kwargs) File "C:\Users\USER\Desktop\Pictures\Phone-Verify\discord-phone-verifier\new version\main.py", line 221, in verify VERIFYCODE = waitsms() File "C:\Users\USER\Desktop\Pictures\Phone-Verify\discord-phone-verifier\new version\main.py", line 193, in waitsms if str(PHONESERVICE).lower() == "vaksms": waitcount, verifycode = vaksms.getcode() File "C:\Users\USER\Desktop\Pictures\Phone-Verify\discord-phone-verifier\new version\plugins\phoneservices\vaksms.py", line 73, in getcode with requests.Client() as client: response = client.get(url).json() File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx_models.py", line 743, in json return jsonlib.loads(self.text, kwargs) File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\jsoninit.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\USER\AppData\Local\Programs\Python\Python310\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)

go to plugins/phoneservices/vaksms.py and on line 73 replace the line with this one:

with requests.Client() as client: response = client.get(url)
print(response.text)

This will pritnt you the full output from the api and you can send it me, note that a object not subscriptable error will appear and that's expected (because we replaced .json() with .text for debugging?

snekROmonoro commented 1 year ago

fix for that:

url = f"https://vak-sms.com/api/getSmsCode/?apiKey={self.APIKEY}&idNum={self.TZID}"

FuckingToasters commented 1 year ago

fix for that:

url = f"https://vak-sms.com/api/getSmsCode/?apiKey={self.APIKEY}&idNum={self.TZID}"

thx, i've updated the variable so it should work now.