GithubHelp home page GithubHelp logo

auto-ytarchive-raw's People

Contributors

kazandu avatar lekoowo avatar spicadox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

auto-ytarchive-raw's Issues

auto-ytarchive-raw randomly gives 404 errors

Describe your issue

auto-ytarchive-raw randomly gives 404 errors

Traceback

Traceback (most recent call last):
  File "/app/index.py", line 191, in <module>
    is_live = utils.is_live(channel_id)
  File "/app/utils.py", line 185, in is_live
    with urlopen(url, use_cookie=use_cookie) as response:
  File "/app/utils.py", line 174, in urlopen
    raise e
  File "/app/utils.py", line 158, in urlopen
    return urllib.request.urlopen(url)
  File "/usr/local/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/local/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

As you can see from this traceback, the 404 exception is being raised from is_live = utils.is_live(channel_id)

Potential fixes

  • Try it multiple times
    • Maybe if it fails 10 times error/warn to console (don't exit script)
  • Wrap it in try/catch and just ignore it/convert it to a logger.warn

Change text.py to text.py.example

Since text.py also has customizable content (Some Add roles to the messages for pings for example) i think it would be better if the file would get changed to text.py.example too

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.