What could be the reason for HTTP 500 - Internal Server Error when creating work item draft?
This is is something that just recently stopped working for me. My code creates a draft work item (type is "task") in the "Jazz Foundation" project. It just started returning an HTTP 500 - Internal Server Error.
One thing I notice is that the server was upgraded recently. Seems that server is now:
Is there a way to find out more about the problem? |
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Depending how your code is done. It may be tied to a particular version. In other words, code works with 5.0 may not work with 6.0.
Can you tell anything from the CURL commands?
set COOKIES=.\cookies.txt
set USER=
set PASSWORD=
set HOST=https://jazz.net/jazz
curl -k -c %cookies% "%host%/jts/authenticated/identity" >nul
curl -k -L -b %COOKIES% -c %COOKIES% -d j_username=%USER% -d j_password=%PASSWORD% "%host%/jts/authenticated/j_security_check" >nul
curl -k -b %COOKIES% -H "Content-Type: application/json" -H "Accept: text/json" -X POST --data-binary @create-simple.json "%host%/oslc/contexts/_Q2fMII8EEd2Q-OW8dr3S5w/drafts/workitems"
Content of create_simple.json file:
{
"dc:title":"Documentation update needed",
"dc:description":"Here is the description",
"dc:type":
{
"rdf:resource":"https:\/\/jazz.net\/jazz\/oslc\/types\/_Q2fMII8EEd2Q-OW8dr3S5w\/task"
},
"rtc_cm:teamArea":
{
"rdf:resource": "https:\/\/jazz.net\/jazz\/oslc\/teamareas\/_I3iq8BTPEd6zz6xdSaYlGQ"
},
"rtc_cm:filedAgainst":
{
"rdf:resource": "https:\/\/jazz.net\/jazz\/resource\/itemOid\/com.ibm.team.workitem.Category\/_v2l5gBTPEd6zz6xdSaYlGQ"
}
}