DBuildService / dbs-server

BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Listing tasks in client causes 500 on the server #20

Closed hhorak closed 9 years ago

hhorak commented 9 years ago

How to reproduce: dbs-client --server http://dbs-stg2.usersys.redhat.com --port 80 tasks

Actual result:

Getting data: {u'url': u'http://dbs-stg2.usersys.redhat.com/v1/tasks', u'data': None}
Traceback (most recent call last):
  File "/usr/bin/dbs-client", line 9, in <module>
    load_entry_point('dbs-client==0.1', 'console_scripts', 'dbs-client')()
  File "/usr/lib/python2.7/site-packages/dbs_client/client.py", line 232, in main
    return args.func(args)
  File "/usr/lib/python2.7/site-packages/dbs_client/client.py", line 83, in action_tasks
    output = subcommands.action_tasks(args=payload)
  File "/usr/lib/python2.7/site-packages/dbs_client/subcommands.py", line 188, in action_tasks
    return _default_get('{0}/tasks', data, args, user)
  File "/usr/lib/python2.7/site-packages/dbs_client/subcommands.py", line 155, in _default_get
    output = _get_data(req)
  File "/usr/lib/python2.7/site-packages/dbs_client/subcommands.py", line 81, in _get_data
    "Unknown response from the server. The response was: {0}".format(req.text))
dbs_client.exceptions.DBSCliUnknownResponseException: Unknown response from the server. The response was: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
TomasTomecek commented 9 years ago

Fixed by https://github.com/DBuildService/dbs-server/commit/ef6bc60152ac9d7b8687a1d2db752b12462c14ba.