Re: Issue 1847 in reviewboard: The diff-comments resource is unaccessible in REST API 2.0
Comment #4 on issue 1847 by drenna...@gmail.com: The diff-comments resource is unaccessible in REST API 2.0 http://code.google.com/p/reviewboard/issues/detail?id=1847 Same comment at kent3, this is still broken in 1.6.1. I'm getting a similar traceback ending in.. File /usr/lib/python2.4/site-packages/Django-1.3.1-py2.4.egg/django/db/models/fields/__init__.py, line 479, in get_prep_value return int(value) TypeError: int() argument must be a string or a number -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To post to this group, send email to reviewboard-issues@googlegroups.com. To unsubscribe from this group, send email to reviewboard-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
Re: Issue 1847 in reviewboard: The diff-comments resource is unaccessible in REST API 2.0
Comment #3 on issue 1847 by kent3...@gmail.com: The diff-comments resource is unaccessible in REST API 2.0 http://code.google.com/p/reviewboard/issues/detail?id=1847 I still have a similar problem with RB 1.6.1 running on Windows. Below is the error info. The code I am using is essentially this: url = u'http://myreviewboard.net/api/review-requests/1140/reviews/1445/diff-comments/' headers = { 'Accept' : 'application/json' } auth = ('user', 'pass') import requests # http://pypi.python.org/pypi/requests/0.5.1 resp = requests.get(url, headers=headers, auth=auth) resp.status_code == 500 Traceback (most recent call last): File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\core\handlers\base.py, line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\views\decorators\cache.py, line 79, in _wrapped_view_func response = view_func(request, *args, **kwargs) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\views\decorators\vary.py, line 22, in inner_func response = func(*args, **kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\webapi\resources.py, line 338, in __call__ result = view(request, api_format=api_format, *args, **kwargs) File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\decorators.py, line 127, in _check return view_func(*args, **kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\util\decorators.py, line 75, in _call f = augmented_func(*args, **kwargs) File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\decorators.py, line 127, in _check return view_func(*args, **kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\webapi\decorators.py, line 231, in _validate return view_func(*args, **new_kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\util\decorators.py, line 75, in _call f = augmented_func(*args, **kwargs) File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\decorators.py, line 32, in _check return view_func(*args, **kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\webapi\decorators.py, line 231, in _validate return view_func(*args, **new_kwargs) File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\resources.py, line 148, in get_list return self._get_list_impl(request, *args, **kwargs) File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\resources.py, line 157, in _get_list_impl return super(WebAPIResource, self).get_list(request, *args, **kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\webapi\decorators.py, line 231, in _validate return view_func(*args, **new_kwargs) File C:\Python27\lib\site-packages\djblets-0.6.13-py2.7.egg\djblets\webapi\resources.py, line 566, in get_list *args, **kwargs).select_related(), File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\resources.py, line 433, in get_queryset request, review_request_id, *args, **kwargs) File C:\Python27\lib\site-packages\reviewboard-1.6.1-py2.7.egg\reviewboard\webapi\resources.py, line 323, in get_queryset filediff__diffset__history__review_request=review_request) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\manager.py, line 141, in filter return self.get_query_set().filter(*args, **kwargs) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\query.py, line 550, in filter return self._filter_or_exclude(False, *args, **kwargs) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\query.py, line 568, in _filter_or_exclude clone.query.add_q(Q(*args, **kwargs)) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\sql\query.py, line 1191, in add_q self.add_q(child, used_aliases, force_having=force_having) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\sql\query.py, line 1194, in add_q can_reuse=used_aliases, force_having=force_having) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\sql\query.py, line 1129, in add_filter connector) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\sql\where.py, line 67, in add value = obj.prepare(lookup_type, value) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\sql\where.py, line 316, in prepare return self.field.get_prep_lookup(lookup_type, value) File C:\Python27\lib\site-packages\django-1.3.1-py2.7.egg\django\db\models\fields\related.py, line
Re: Issue 1847 in reviewboard: The diff-comments resource is unaccessible in REST API 2.0
Updates: Status: Fixed Comment #2 on issue 1847 by chip...@gmail.com: The diff-comments resource is unaccessible in REST API 2.0 http://code.google.com/p/reviewboard/issues/detail?id=1847 Not sure where the original bug is, but this has since been fixed. -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To post to this group, send email to reviewboard-issues@googlegroups.com. To unsubscribe from this group, send email to reviewboard-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
Re: Issue 1847 in reviewboard: The diff-comments resource is unaccessible in REST API 2.0
Updates: Labels: Component-API Comment #1 on issue 1847 by trowbrds: The diff-comments resource is unaccessible in REST API 2.0 http://code.google.com/p/reviewboard/issues/detail?id=1847 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To post to this group, send email to reviewboard-iss...@googlegroups.com. To unsubscribe from this group, send email to reviewboard-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
Issue 1847 in reviewboard: The diff-comments resource is unaccessible in REST API 2.0
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1847 by dekrueg: The diff-comments resource is unaccessible in REST API 2.0 http://code.google.com/p/reviewboard/issues/detail?id=1847 What version are you running? 1.5 What's the URL of the page containing the problem? /api/review-requests/{review_request_id}/reviews/{review_id}/diff-comments/ What steps will reproduce the problem? 1. Attempt a GET of a diff-comments resource URL in the REST API What is the expected output? What do you see instead? Expect return of JSON resource. G et a 500 status code and the following traceback: --- Traceback (most recent call last): File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/core/handlers/base.py, line 92, in get_response response = callback(request, *callback_args, **callback_kwargs) File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/views/decorators/cache.py, line 44, in _wrapped_view_func response = view_func(request, *args, **kwargs) File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/views/decorators/vary.py, line 21, in inner_func response = func(*args, **kwargs) File /usr/lib/python2.5/site-packages/Djblets-0.6.5alpha0.dev_20101008-py2.5.egg/djblets/webapi/resources.py, line 284, in __call__ result = view(request, api_format=api_format, *args, **kwargs) File /usr/lib/python2.5/site-packages/Djblets-0.6.5alpha0.dev_20101008-py2.5.egg/djblets/util/decorators.py, line 74, in _call f = real_func(*args, **kwargs) File /usr/lib/python2.5/site-packages/ReviewBoard-1.5-py2.5.egg/reviewboard/webapi/decorators.py, line 25, in _check return view_func(*args, **kwargs) File /usr/lib/python2.5/site-packages/Djblets-0.6.5alpha0.dev_20101008-py2.5.egg/djblets/webapi/decorators.py, line 233, in _validate return view_func(*args, **new_kwargs) File /usr/lib/python2.5/site-packages/ReviewBoard-1.5-py2.5.egg/reviewboard/webapi/resources.py, line 103, in get_list return self._get_list_impl(request, *args, **kwargs) File /usr/lib/python2.5/site-packages/ReviewBoard-1.5-py2.5.egg/reviewboard/webapi/resources.py, line 112, in _get_list_impl return super(WebAPIResource, self).get_list(request, *args, **kwargs) File /usr/lib/python2.5/site-packages/Djblets-0.6.5alpha0.dev_20101008-py2.5.egg/djblets/webapi/decorators.py, line 233, in _validate return view_func(*args, **new_kwargs) File /usr/lib/python2.5/site-packages/Djblets-0.6.5alpha0.dev_20101008-py2.5.egg/djblets/webapi/resources.py, line 469, in get_list extra_data=data) File /usr/lib/python2.5/site-packages/Djblets-0.6.5alpha0.dev_20101008-py2.5.egg/djblets/webapi/core.py, line 322, in __init__ results = list(results) File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/models/query.py, line 83, in __len__ self._result_cache.extend(list(self._iter)) File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/models/query.py, line 238, in iterator for row in self.query.results_iter(): File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/models/sql/query.py, line 287, in results_iter for rows in self.execute_sql(MULTI): File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/models/sql/query.py, line 2369, in execute_sql cursor.execute(sql, params) File /usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/backends/sqlite3/base.py, line 193, in execute return Database.Cursor.execute(self, query, params) InterfaceError: Error binding parameter 1 - probably unsupported type. ModPythonRequest path:/api/review-requests/477/reviews/1282/diff-comments/, GET:QueryDict: {}, POST:QueryDict: {}, COOKIES:{}, META:{'AUTH_TYPE': None, 'CONTENT_LENGTH': 0, 'CONTENT_TYPE': None, 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_HOST': 'review.example.com', 'HTTP_USER_AGENT': 'Python-urllib/1.17', 'PATH_INFO': u'/api/review-requests/477/reviews/1282/diff-comments/', 'PATH_TRANSLATED': None, 'QUERY_STRING': None, 'REMOTE_ADDR': '172.16.71.82', 'REMOTE_HOST': None, 'REMOTE_IDENT': None, 'REMOTE_USER': None, 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME': 'review.example.com', 'SERVER_PORT': 80, 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'mod_python'} --- What operating system are you using? What browser? Fedora No browser (a Python application) -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To post to this group, send email to reviewboard-iss...@googlegroups.com. To unsubscribe from this group, send email to reviewboard-issues+unsubscr...@googlegroups.com. For more options, visit this group at