TheonlyIcebear / Bloxflip-Smart-Bet

A program that uses real statistics to choose the best times to bet on BloxFlip's crash gamemode. https://bloxflip.com/crash
Apache License 2.0
53 stars 20 forks source link

Closes chrome after period of time #4

Closed d-sndd closed 2 years ago

d-sndd commented 2 years ago

Traceback (most recent call last): File "C:\Bloxflip-Smart-Bet-main\main.py", line 239, in main() File "C:\Bloxflip-Smart-Bet-main\main.py", line 17, in init self.sendBets() File "C:\Bloxflip-Smart-Bet-main\main.py", line 202, in sendBets for game in self.ChrashPoints(): File "C:\Bloxflip-Smart-Bet-main\main.py", line 170, in ChrashPoints games = json.loads(data) File "C:\Program Files\Python310\lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\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)

max20211 commented 2 years ago

same

TheonlyIcebear commented 2 years ago

This is an issue with their cloudflare. If your using a vpn disconnect and next time it opens if there's a captcha try to solve it. I have also added some error handling to account for this as well.

d-sndd commented 2 years ago

don't use a vpn and no captcha

TheonlyIcebear commented 2 years ago

don't use a vpn and no captcha

I have solved the problem by changing some options on selenium