question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Traceback (most recent call last):
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 641, in <module>
    chat_messages = chat_downloader.get_chat_replay(
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 565, in get_chat_replay
    return self.get_youtube_messages(match.group(1), start_time, end_time, message_type, chat_type, callback)
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 408, in get_youtube_messages
    info = self.__get_live_info(continuation)
  File "C:\Users\r\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 303, in __get_live_info
    return(self.__get_continuation_info(url))
  File "C:\Usersr\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 307, in __get_continuation_info
    info = self.__session_get_json(url)
  File "C:\Users\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 145, in __session_get_json
    return self.__session_get(url).json()
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Users\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\\AppData\Local\Programs\Python\Python39\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)

C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2>python tester.py -message_type all https://www.youtube.com/watch?v=jJ8EkajpnAo -output jJ8EkajpnAo3.txt
Traceback (most recent call last):
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 641, in <module>
    chat_messages = chat_downloader.get_chat_replay(
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 565, in get_chat_replay
    return self.get_youtube_messages(match.group(1), start_time, end_time, message_type, chat_type, callback)
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 408, in get_youtube_messages
    info = self.__get_live_info(continuation)
  File "C:\UsersDownloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 303, in __get_live_info
    return(self.__get_continuation_info(url))
  File "C:\Users\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 307, in __get_continuation_info
    info = self.__session_get_json(url)
  File "C:\Users\\Downloads\Compressed\chat-replay-downloader-1.0.2\tester.py", line 145, in __session_get_json
    return self.__session_get(url).json()
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Users\\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\\AppData\Local\Programs\Python\Python39\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)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
xenovacommented, Jan 29, 2021

An update to those waiting:

I have found the problem and I will fix it as soon as possible.

In short, YouTube removed support for an endpoint which this tool (and many others) used to get chat. They removed https://www.youtube.com/live_chat_replay/get_live_chat_replay and are now using https://www.youtube.com/youtubei/v1/live_chat/get_live_chat_replay and https://www.youtube.com/youtubei/v1/live_chat/get_live_chat.

1reaction
Kaimeeracommented, Jan 31, 2021

Thanks! I’ve got it working now, I was missing a dependency. Really like this version!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding the Python Traceback
A traceback is a report containing the function calls made in your code at a specific point. Tracebacks are known by many names,...
Read more >
traceback — Print or retrieve a stack traceback — Python 3.11 ...
Source code: Lib/traceback.py This module provides a standard interface to extract, format and print stack traces of Python programs.
Read more >
Python Traceback - GeeksforGeeks
In Python, A traceback is a report containing the function calls made in your code at a specific point i.e when you get...
Read more >
How to read a traceback in Python
When Python encounters an error in your code, it will print out a traceback. Let's talk about how to use tracebacks to fix...
Read more >
Understanding Traceback in Python - Machine Learning Mastery
Knowing how to read the traceback can help you easily identify the error and make a fix. In this tutorial, we are going...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found