I am working in Linux environment and I have completed all the requirements for task 1 but when I run the command python3 client3.py I am getting the following error:
Traceback (most recent call last):
File "client3.py", line 53, in
quotes = json.loads(urllib.request.urlopen(QUERY.format(random.random())).read())
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
The server3.py is opening at port 8080 but client3.py is showing above error. I have not made any changes to the client3.py till now but still it is not opening. So please help me resolve this issue.
I am working in Linux environment and I have completed all the requirements for task 1 but when I run the command
python3 client3.py
I am getting the following error:Traceback (most recent call last): File "client3.py", line 53, in
quotes = json.loads(urllib.request.urlopen(QUERY.format(random.random())).read())
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
The server3.py is opening at port 8080 but client3.py is showing above error. I have not made any changes to the client3.py till now but still it is not opening. So please help me resolve this issue.