1. Marcin Kuzminski
  2. RhodeCode
  3. Issues

Issues

Issue #746 resolved

WebApp Error: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xef in position 88395: ordinal not in range(128)

Vijeth Shetty
created an issue

I get the above error as an admin onto my mail box , ever sicne i upgraded to 1.5.2 .from 1.4.3.. now even users trying to push the commit get this error

CGI Variables   
CONTENT_TYPE     '; charset="utf-8"'    
HTTP_ACCEPT  'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'  
HTTP_ACCEPT_ENCODING     'gzip, deflate'    
HTTP_ACCEPT_LANGUAGE     'en-US,en;q=0.5'   
HTTP_HOST    'hg.apptio.com'    
HTTP_IF_MODIFIED_SINCE   'Thu, 01 Jan 1970 00:00:00 GMT'    
HTTP_USER_AGENT  'Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 Lightning/1.9' 
HTTP_X_FORWARDED_FOR     '10.115.112.20'    
HTTP_X_FORWARDED_HOST    'hg.apptio.com'    
HTTP_X_FORWARDED_SERVER  'hg.apptio.com'    
PATH_INFO    '/biit/feed/rss'   
QUERY_STRING     'api_key=7fb8b7e03b06f3319e01bf36dd78680db2cb28cf' 
REMOTE_ADDR  '10.115.16.136'    
REQUEST_METHOD   'GET'  
SERVER_NAME  'localhost'    
SERVER_PORT  '5000' 
SERVER_PROTOCOL  'HTTP/1.0' 
SERVER_SOFTWARE  'waitress' 
WSGI Variables  
application  <beaker.middleware.SessionMiddleware object at 0x2ed7b10>  
beaker.get_session   <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2ed7b10>> 
beaker.session   {'_accessed_time': 1359486183.1840961, '_creation_time': 1359486183.1840961}   
paste.parsed_querystring     ([('api_key', '7fb8b7e03b06f3319e01bf36dd78680db2cb28cf')], 'api_key=7fb8b7e03b06f3319e01bf36dd78680db2cb28cf')    
paste.registry   <paste.registry.Registry object at 0x7f0fe070a610> 
paste.throw_errors   True   
pylons.action_method     <bound method FeedController.rss of <rhodecode.controllers.feed.FeedController object at 0x7f0fe467fe90>>  
pylons.controller    <rhodecode.controllers.feed.FeedController object at 0x7f0fe467fe90>   
pylons.environ_config    {'session': 'beaker.session', 'cache': 'beaker.cache'} 
pylons.pylons    <pylons.util.PylonsContext object at 0x7f0fd5e4f150>   
pylons.routes_dict   {'action': u'rss', 'controller': u'feed', 'repo_name': u'biit'}    
routes.cached_hostinfo   {'host': 'hg.apptio.com', 'protocol': 'https'} 
routes.route     <routes.route.Route object at 0x29f5810>   
routes.url   <routes.util.URLGenerator object at 0x7f0fc7c152d0>    
webob._parsed_query_vars     (GET([('api_key', '7fb8b7e03b06f3319e01bf36dd78680db2cb28cf')]), 'api_key=7fb8b7e03b06f3319e01bf36dd78680db2cb28cf')   
webob.adhoc_attrs    {'user': <AuthUser('id:3:telliott|None')>, 'language': 'en-us'}    
wsgi process     'Multithreaded'    
wsgi._org_proto  'http' 
wsgi.file_wrapper    <class 'waitress.buffers.ReadOnlyFileBasedBuffer'> 
wsgiorg.routing_args     (<routes.util.URLGenerator object at 0x7f0fc7c152d0>, {'action': u'rss', 'controller': u'feed', 'repo_name': u'biit'}) 

Comments (6)

  1. Vijeth Shetty reporter

    (Reply via VSh...@apptio.com):

    Marcin , Do you have this error in the earlier releases

    Regards Vijeth Shetty

    -----Original Message----- From: Marcin Kuzminski [mailto:issues-reply@bitbucket.org] Sent: Tuesday, January 29, 2013 3:06 PM To: Vijeth Shetty Subject: Re: [marcinkuzminski/rhodecode] WebApp Error: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xef in position 88395: ordinal not in range(128) (issue #746)

  2. Vijeth Shetty reporter

    Module rhodecode.controllers.feed:182 in rss

    << region_invalidate(_get_feed_from_cache, None, key) CacheInvalidation.set_valid(inv.cache_key) return _get_feed_from_cache(key) return _get_feed_from_cache(key) Module beaker.cache:572 in cached

    << return func(*args)

                   return cache[0].get_value(cache_key, createfunc=go)
               cached._arg_namespace = namespace
               if region is not None:
    

    return cache[0].get_value(cache_key, createfunc=go) Module beaker.cache:305 in get

    << def get(self, key, kw): """Retrieve a cached value from the container""" return self._get_value(key, kw).get_value() get_value = get return self._get_value(key, **kw).get_value() Module beaker.container:385 in get_value

    << debug("get_value creating new value") v = self.createfunc() self.set_value(v) return v v = self.createfunc() Module beaker.cache:570 in go

    << def go(): return func(*args)

                   return cache[0].get_value(cache_key, createfunc=go)
    

    return func(*args) Module rhodecode.controllers.feed:170 in _get_feed_from_cache

    << revision=cs.raw_id, qualified=True), author_name=cs.author, description=''.join(self.get_desc(cs)), pubdate=cs.date, ) description=''.join(self.get_desc(cs)), UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 209692365: ordinal not in range(128)

  3. Log in to comment