TWB icon indicating copy to clipboard operation
TWB copied to clipboard

Issues after restarting

Open siveti opened this issue 2 years ago • 4 comments

Traceback (most recent call last): File "C:\Users\mee\OneDrive\Pulpit\TWB-master\twb.py", line 374, in t.start() File "C:\Users\mee\OneDrive\Pulpit\TWB-master\twb.py", line 368, in start self.run() File "C:\Users\mee\OneDrive\Pulpit\TWB-master\twb.py", line 215, in run config = self.config() File "C:\Users\mee\OneDrive\Pulpit\TWB-master\twb.py", line 118, in config config = json.load(f, object_pairs_hook=collections.OrderedDict) File "C:\Users\mee\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 293, in load return loads(fp.read(), File "C:\Users\mee\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 359, in loads return cls(**kw).decode(s) File "C:\Users\mee\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\mee\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 109 column 5 (char 2984)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\mee\OneDrive\Pulpit\TWB-master\twb.py", line 376, in t.wrapper.reporter.report(0, "TWB_EXCEPTION", str(e)) AttributeError: 'NoneType' object has no attribute 'reporter'

siveti avatar Mar 26 '22 17:03 siveti

\TWB-master\twb.py", line 377 pl_auth = 10e49509da8a:c09320a63cb835ff9f2ea94dfd57c5f28596d6fa1295ac6cab2803dd42528dcc; ^ SyntaxError: invalid decimal literal

siveti avatar Mar 26 '22 18:03 siveti

It looks like your session file (cache/session.json) is broken, deleting it and restarting the bot will probably fix the issue

stefan2200 avatar Mar 27 '22 18:03 stefan2200

It didnt help and at start it cannot create that file

siveti avatar Mar 31 '22 07:03 siveti

I am encountering the same problem, which is why I have not been able to connect the bot once. Is there already any solution available?

Edit: Now it is working. The problem was that I first opened the config file in my python interpreter to edit it, so it received the typical author/date signature. After deleting that part the bot works perfectly fine. Maybe it helps you further.

MAHardo avatar May 04 '22 07:05 MAHardo