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

Error while dispatching download #59

Open
miken32 opened this issue Jul 21, 2016 · 0 comments
Open

Error while dispatching download #59

miken32 opened this issue Jul 21, 2016 · 0 comments

Comments

@miken32
Copy link

miken32 commented Jul 21, 2016

I start my servers like so, and can render articles no problem:

mw-qserve -p 14311 -i 127.0.0.1 &
nserve --port 8899 --qserve 127.0.0.1:14311 &
nslave --serve-files-port 8898 --cachedir /var/cache/mwlib/ &

But I get the following output when trying to download the rendered PDF:

ERROR while dispatching 'download': {'qserve': ('localhost', 14311), 'collection_id': '4a3642d5dcbcbc22', 'is_new': False}
Traceback (most recent call last):
  File "/usr/local/python27/lib/python2.7/site-packages/mwlib/nserve.py", line 238, in dispatch
    return method(collection_id, request.params, is_new)
  File "/usr/local/python27/lib/python2.7/site-packages/mwlib/nserve.py", line 384, in do_download
    download_url = res["result"]["url"]
KeyError: 'result'
Traceback (most recent call last):
  File "/usr/local/python27/bin/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/local/python27/bin/bottle.py", line 1732, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/python27/lib/python2.7/site-packages/mwlib/nserve.py", line 171, in dispatch_command
    return Application().dispatch(request)
  File "/usr/local/python27/lib/python2.7/site-packages/mwlib/nserve.py", line 243, in dispatch
    raise exc
KeyError: 'result'

Is this a known problem or a bug? I checked the cache directory for that collection ID and the PDF does exist at /var/cache/mwlib/4a/4a3642d5dcbcbc22/output.rl.

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