morss
morss copied to clipboard
Error <type 'exceptions.TypeError'>
I have created a feed and sometimes I get the error <type 'exceptions.TypeError'>
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/pictuga/morss/cgi/morss/wsgi.py in cgi_error_handler(environ={'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>, app=<function app_wrap>)
246 def cgi_error_handler(environ, start_response, app):
247 try:
=> 248 return app(environ, start_response)
249
250 except (KeyboardInterrupt, SystemExit):
app = <function app_wrap>, environ = {'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>
/home/pictuga/morss/cgi/morss/wsgi.py in app_wrap(environ={'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>)
150 # This is called when a http request is being processed
151
=> 152 return func(environ, start_response, app)
153
154 return app_wrap
func = <function cgi_dispatcher>, environ = {'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>, app = <function cgi_app>
/home/pictuga/morss/cgi/morss/wsgi.py in cgi_dispatcher(environ={'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>, app=<function cgi_app>)
240 return dispatch_table[key](environ, start_response)
241
=> 242 return app(environ, start_response)
243
244
app = <function cgi_app>, environ = {'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>
/home/pictuga/morss/cgi/morss/wsgi.py in cgi_app(environ={'APP_ENGINE': 'phpcgi', 'APP_ENGINE_VERSION': 'AUTO', 'CACHE': 'mysql', 'CACHE_SIZE': '1000', 'CFG_CLUSTER': 'cluster010', 'DOCUMENT_ROOT': '/home/pictuga/morss', 'ENVIRONMENT': 'production', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GEOIP_AREA_CODE': '0', 'GEOIP_CITY': 'Managua', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance>>)
126
127 # get the work done
=> 128 url, rss = FeedFetch(url, options)
129
130 start_response(headers['status'], list(headers.items()))
url = 'https://apnews.com/hub/noticias', rss undefined, global FeedFetch = <function FeedFetch>, options = <Options instance>
/home/pictuga/morss/cgi/morss/morss.py in FeedFetch(url='https://apnews.com/hub/noticias', options=<Options instance>)
295 ruleset['item_time'] = options.item_time
296
=> 297 rss = feeds.parse(req['data'], encoding=req['encoding'], ruleset=ruleset)
298 rss = rss.convert(feeds.FeedXML)
299
rss undefined, global feeds = <module 'morss.feeds' from '/home/pictuga/morss/cgi/morss/feeds.pyc'>, feeds.parse = <function parse>, req = {'con': <addinfourl at 4140797836L whose fp = <_io.BytesIO object>>, 'contenttype': u'text/html', 'data': '<!DOCTYPE html><html lang="en"><head><meta chars...ist/LeftRail-LeftRail.js"></script></body></html>', 'encoding': u'utf-8', 'url': u'https://apnews.com/hub/noticias'}, encoding undefined, ruleset = {'desc': '//head/meta[@name="description"]/@content', 'item_link': './@href|.//a/@href|ancestor::a/@href', 'item_title': '.', 'items': '//*[class=Component-heading-0-2-117]', 'title': '//head/title'}
/home/pictuga/morss/cgi/morss/feeds.py in parse(data='<!DOCTYPE html><html lang="en"><head><meta chars...ist/LeftRail-LeftRail.js"></script></body></html>', url=None, encoding=u'utf-8', ruleset={'desc': '//head/meta[@name="description"]/@content', 'item_link': './@href|.//a/@href|ancestor::a/@href', 'item_title': '.', 'items': '//*[class=Component-heading-0-2-117]', 'title': '//head/title'})
145 return feed
146
=> 147 raise TypeError('no way to handle this feed')
148
149
builtin TypeError = <type 'exceptions.TypeError'>
<type 'exceptions.TypeError'>: no way to handle this feed
args = ('no way to handle this feed',)
message = 'no way to handle this feed'
Feed link: https://morss.it/:proxy:items=%7C%7C*[class=Component-heading-0-2-117]/https://apnews.com/hub/noticias