-
Notifications
You must be signed in to change notification settings - Fork 79
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 with time entry #292
Comments
Can you check the error in the redmine log and post it here ? |
I, [2023-06-14T14:56:25.965163 #1275] INFO -- : [1c810300-6afc-492b-820f-2f812241d9f5] Started GET "/issues/26049.json" for 10.2.0.10 at 2023-06-14 14:56:25 +0000 |
The log says, it completed successfully, it may be an error in python, can you check your python code ? |
This is the python code: from redminelib import Redmine redmine = Redmine('http://10.2.0.200/', username='mhassan', password='') |
I don't see any issues with this python code, do you want to see for any errors in the line below it ? may be try to print debug statements |
I receive this error: |
This looks like a python error, you will probably have to get support else where |
Dears,
this issue occur only when ERPmine plugin is installed:
When I'm trying to create time entry using API:
from redminelib import Redmine
redmine = Redmine('http://10.2.0.255/', username='admin', password='')
issue = redmine.issue.get(5)
time_entry = redmine.time_entry.create(issue_id=issue.id, hours=2, activity_id=8, comments='Worked on issue maxtepkeev/python-redmine#1')
then I receive this error:
File "d:\test.py", line 47, in
time_entry = redmine.time_entry.create(issue_id=issue.id, hours=2, activity_id=8, comments='Worked on issue maxtepkeev/python-redmine#1')
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\redminelib\managers\base.py", line 192, in create
resource = self._process_create_response(request, response)
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\redminelib\managers\base.py", line 206, in _process_create_response
return self.to_resource(response[self.container])
KeyError: 'time_entry'
The text was updated successfully, but these errors were encountered: