Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection error at home, but works at the library #91

Open
DevJChen opened this issue Jul 23, 2022 · 1 comment
Open

Connection error at home, but works at the library #91

DevJChen opened this issue Jul 23, 2022 · 1 comment
Labels
v1.x Issue is related to v1 of twitchtube

Comments

@DevJChen
Copy link

Whenever I go to the library and run this program, I get no errors when downloading the clips. However, when I run this program at my house, I can never seem to download one clip. I am not sure how to fix such an issue. I do not want to go to the library every time I want to run this program. Do you have any ideas on how to fix this? This is the error that is produced.

Traceback (most recent call last):
  File "D:/john/Pycharm Projects/twitchtube-master/example.py", line 9, in <module>
    make_video(
  File "D:\john\Pycharm Projects\twitchtube-master\twitchtube\video.py", line 143, in make_video
    names += download_clips(batch, path, oauth_token, client_id)
  File "D:\john\Pycharm Projects\twitchtube-master\twitchtube\clips.py", line 186, in download_clips
    download_clip(value["url"], path, oauth_token, client_id)
  File "D:\john\Pycharm Projects\twitchtube-master\twitchtube\clips.py", line 77, in download_clip
    urllib.request.urlretrieve(mp4_url, output_path, reporthook=get_progress)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\urllib\request.py", line 276, in urlretrieve
    block = fp.read(bs)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\http\client.py", line 458, in read
    n = self.readinto(b)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\http\client.py", line 502, in readinto
    n = self.fp.readinto(b)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
@DevJChen
Copy link
Author

@offish

@offish offish added the v1.x Issue is related to v1 of twitchtube label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.x Issue is related to v1 of twitchtube
Projects
None yet
Development

No branches or pull requests

2 participants