Please don't hesitate to message me :)
auto-ytarchive-raw's Introduction
auto-ytarchive-raw's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.