You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
..
File "E:\automateDashboard\proj1\venv\lib\site-packages\tfs\connection.py", line 309, in create_workitem
api_version)
File "E:\automateDashboard\proj1\venv\lib\site-packages\tfs\connection.py", line 282, in __create_workitem
raw = self.rest_client.send_post(uri=uri, data=data, headers=headers, project=True, payload=params)
File "E:\automateDashboard\proj1\venv\lib\site-packages\tfs\connection.py", line 456, in send_post
return self.__send_request('POST', uri, data, headers, payload=payload, underProject=project)
File "E:\automateDashboard\proj1\venv\lib\site-packages\tfs\connection.py", line 506, in __send_request
response.raise_for_status()
File "E:\automateDashboard\proj1\venv\lib\site-packages\requests\models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://staged-tfs.lan/tfs/DefaultCollection/_apis/wit/workitems/$DEFECT?api-version=5.0
The text was updated successfully, but these errors were encountered:
harsheel87
changed the title
Unable to create item in
Unable to create work items
May 23, 2019
Hi @harsheel87, I stumbled upon the same issue. In my case I forgot the explicitly set the project id. And as get_workitem is more forgiving and runs without the project ID I did not notice this immediately. Here the "test" code that made me notice:
Thanks @strahl for the inputs. @allburov , sorry for the late reply as I had to leave on family medical leave but the project was shelved before we could try the suggestion.
I am using Azure DevOps Server 17.143.28912.1.
I am able to invoke
get_workitem
calls butcreate_workitem
calls fail. Can someone point me what I may be doing wrong?ERROR:
The text was updated successfully, but these errors were encountered: