问题
I am using rally webservices api v 1.36 and I am getting this error when I try to create a new rally item.Could not update: Could not write changes in Unit Of Work. Code was working fine a week back but now it is not working. I am using ruby gem rally_rest_api. Thanks in advance.
回答1:
Try to use an equivalent curl command or hit the endpoint using a browser REST client to see if you get the same error. Use the current v2.0 of WS API. If you get the same error, post your create URL here, otherwise there is no enough information to know what is happening. Try curl or browser REST client with the payload equivalent to the attribute settings you do in your Ruby code.
To narrow it down you may also reduce the number of attribute you set and see when it starts working, if ever. For example if you create a user story and the only required field is Name, try to create a story while only setting the Name and see if that succeeds, and keep adding attributes until you replicate the error.
rally_rest_api is no longer supported, it is old. The same goes for 1.36 of WS API. See deprecation schedule here. There is new Ruby REST toolkit that uses rally_api gem.
来源:https://stackoverflow.com/questions/27232942/rally-webservices-api-v-1-36-operationresulterrorcould-not-update-could-not-w