Working Chatroom
pyelias (907)

It's a chatroom!

https://repl.it/@pyelias/Chatroom

If there's any bugs, say so in the chat (or comment here).

And don't spam or you get muted.

(this project has been discontinued (might still work until 2020), if you wanna talk to people join the discord https://discord.gg/5gcPC6B)

You are viewing a single comment. View All
JOHN_YUAN (0)

The code at https://repl.it/@replitcode/PyChat isn't working. There is an error at line 357

JOHN_YUAN (0)

Here is what it says
Traceback (most recent call last):
File "main.py", line 122, in <module>
PW = db.ConnectedDatabase("chatroom", "staff").state # hashed password
File "/home/runner/db.py", line 14, in __init
self.state = requests.post(self.url("state")).json()
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.6/json/
init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)