Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allura backend code tries to paginate, gets 500 error #102

Open
brainwane opened this issue Nov 7, 2013 · 0 comments
Open

Allura backend code tries to paginate, gets 500 error #102

brainwane opened this issue Nov 7, 2013 · 0 comments

Comments

@brainwane
Copy link
Contributor

When I run

./bicho --db-user-out=root --db-password-out=[password] --db-database-out=bicho_test -d 15 -b allura -u "http://sourceforge.net/rest/p/allura/tickets"

(an example from the README), I get this traceback:

Checking URL: http://sourceforge.net
Running Bicho with delay of 15 seconds
Traceback (most recent call last):
  File "./bicho", line 8, in <module>
    retval = Bicho.main.main()
  File "/home/sumanah/test/Bicho/Bicho/main.py", line 56, in main
    backend.run()
  File "/home/sumanah/test/Bicho/Bicho/backends/allura.py", line 381, in run
    ticketTotal = json.loads(f.read())
  File "/usr/lib/python2.7/json/__init__.py", line 328, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I think I can trace this to lines 375-378 and 399-404 of allura.py; they're adding pagination-related strings to self.url_issues, but when you visit that URL in a browser (e.g. http://sourceforge.net/rest/p/allura/tickets/search/?limit=1&q=mod_date_dt%3A[1900-01-01T00%3A00%3A00Z%20TO%20%202013-11-07T08%3A29%3A01.406453Z] ), you get a 500 error.

Has the actual code of the Allura application on sourceforge.net changed? Or perhaps they've just added so many tickets that pagination takes longer and they kill a hard-to-compute process by spitting out a 500 error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant