"Oops! 500" on package 'marble' #77
Comments
Looks like marble never got indexed. I checked the cronjob log in The dir was owned by root but it should have been owned by apache. I issued a |
ok. |
This is for #77 so I can force the indexer to go back in time and pick up 'marble' (which it somehow missed).
@bitlord, well, the cronjob ran but it didn't pick it up. I'm trying to force it now. |
Learned new stuff: the issue is a UnicodeDecodeError coming from the template It is dying because marble has a little non-ascii character in its description: This is fedora-packages' fault. It should be able to handle this. |
Doh. I'm unable to reproduce this locally on F20. Will have to debug a fix in the staging environment. |
A bunch of packages are hitting this now, it seems. Module details_mak:28 in render_body
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 853: ordinal not in range(128) |
The package description that it's choking on in
Which is fetched from Xapian in |
I am looking at https://github.com/fedora-infra/fedora-packages/blob/develop/fedoracommunity/widgets/package/overview.py and can't find where |
I think it comes from |
So, result comes from https://github.com/fedora-infra/fedora-packages/blob/develop/fedoracommunity/widgets/package/overview.py#L31 which reads some kind of document here - https://github.com/fedora-infra/fedora-packages/blob/develop/fedoracommunity/connectors/xapianconnector.py#L159, but doesn't decode it. To push this further, we need a binary dump of contents returned by It may happen that there is an error in Python documentation of https://docs.python.org/2/library/json.html#json.loads and |
This should fix #77. For unknown reasons, some combination of mako and tw2 are defaulting to ascii encodings. That causes issues as plenty of spec files have descriptions including non-ascii characters (as they should).
Our ticket got closed in favor of... fedora-infra/fedora-packages#77 Including a TODO note to check in on that someday in the future (looks like it won't be fixed any time soon).
Opening "Package info" from pkgdb gives error "500" on 'marble' package, I tested few other packages and it works ok.
link to reproduce this issue:
https://apps.fedoraproject.org/packages/marble
The text was updated successfully, but these errors were encountered: