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

Redmine returned internal error #52

Closed
fcabaud opened this issue Sep 28, 2014 · 2 comments
Closed

Redmine returned internal error #52

fcabaud opened this issue Sep 28, 2014 · 2 comments
Assignees
Labels

Comments

@fcabaud
Copy link

fcabaud commented Sep 28, 2014

Code is very simple
issues = redmine.issue.filter(tracker_id=0, status_id = "open")
issueList = list(issues)

issueList = list(issues)

File "c:\Python34\lib\site-packages\redmine\resultsets.py", line 72, in __iter
__
offset=self.manager.params.get('offset', self.offset)
File "c:\Python34\lib\site-packages\redmine\managers.py", line 58, in retrieve

response = self.redmine.request('get', self.url, params=dict(self.params, li

mit=limit, offset=offset))
File "c:\Python34\lib\site-packages\redmine__init__.py", line 98, in request
raise ServerError()
redmine.exceptions.ServerError: Redmine returned internal error, perhaps you are
doing something wrong

Please, what is this strange error ?

@maxtepkeev maxtepkeev self-assigned this Sep 29, 2014
@maxtepkeev
Copy link
Owner

This error means exactly what it says. When python-redmine made a request to the redmine server, it returned response with a 500 status code (internal error). This usually happens when you do something unusual and redmine doesn't understand what to do, i.e. that's usually a bug on the redmine side.

In your case you are trying to get issues with tracker_id = 0 which doesn't make any sense, because there can't be any tracker with id = 0, all ids start with 1. Probably this is the reason why your redmine server returned and internal error. I'm saying probably because I can't reproduce this error here, but this doesn't mean anything because you may have a different redmine version installed and this bug can exist in your version but was fixed in mine.

You can also try to make a raw query to your redmine server and see what will happen, i.e. http(s)://your-redmine-server/issues.json?tracker_id=0&status_id=open. You should see the same 500 internal error.

@fcabaud
Copy link
Author

fcabaud commented Sep 29, 2014

Thanks you very much.

@fcabaud fcabaud closed this as completed Sep 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants