Hi,

I'm using Windows x64 with  Python2.7.9 x64.

When calling http://localhost/reviewboard/r/new/ I'm receiving an *internal 
server error 500.*

In the reviewboard.log I have the following trace.

'ascii' codec can't decode byte 0xfc in position 39: ordinal not in 
> range(128)
> Traceback (most recent call last):
>   File 
> "C:\Python27\lib\site-packages\django-1.6.10-py2.7.egg\django\core\handlers\base.py",
>  
> line 112, in get_response
>     response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File 
> "C:\Python27\lib\site-packages\django-1.6.10-py2.7.egg\django\contrib\auth\decorators.py",
>  
> line 22, in _wrapped_view
>     return view_func(request, *args, **kwargs)
>   File 
> "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\site\decorators.py",
>  
> line 35, in _check
>     return view_func(request, local_site=local_site, *args, **kwargs)
>   File 
> "C:\Python27\lib\site-packages\reviewboard-2.0.13-py2.7.egg\reviewboard\reviews\views.py",
>  
> line 260, in new_review_request
>     '%s (ID %d): %s' % (repo.name.encode('utf-8'), repo.id, e),
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 39: 
> ordinal not in range(128)


The effected code is the following:
for repo in repos.order_by('name'):
        try:
            scmtool = repo.get_scmtool()
            valid_repos.append({
                'id': repo.id,
                'name': repo.name,
                'scmtool_name': scmtool.name,
                'supports_post_commit': repo.supports_post_commit,
                'local_site_name': local_site_name,
                'files_only': False,
                'requires_change_number': scmtool.
supports_pending_changesets,
                'requires_basedir': not scmtool.get_diffs_use_absolute_paths
(),
            })
        except Exception as e:
            logging.error('Error loading SCMTool for repository '
                         '%s (ID %d): %s' % (repo.name, repo.id, e), #ERROR 
HERE
                          exc_info=1)

When I simply replace the lines with the following it works without a 
problem.
except Exception as e:
            logging.error('Error loading SCMTool for repository ')

Since I'm not really into Python, I was not able to do a more sensefully 
fix.

I bet you will find a better solution.
Best regards, Stefan

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to