Post

2 followers Follow
0
Avatar

Receiving HTTP 500 error from API call

I'm following the basic steps outlined for API access. I can reproduce using both curl and Postman. With curl, I can successfully obtain a session token using:

curl --data-urlencode username=myname@company.com --data-urlencode password=xyz https://api2.clarizen.com/v2.0/services/authentication/login

However, trying to issue an entityQuery, I get a 500 HTTP error. I'm using:

curl --data-urlencode typeName=Issue --header "Authorization: Session xxxxxx" https://api2.clarizen.com/v2.0/services/data/entityQuery

The response includes:

{"errorCode":"Internal","message":"An internal error has occurred, the error was logged and will be examined.","referenceId":"2fwW2pspLqjGmDzqazQAfH"}

 

Joel Champagne Answered

Please sign in to leave a comment.

1 comment

0
Avatar

Hello Joel,

Here's a working example of EntityQuery in Postman:

Body used:

{
 fields: [
  "ExternalId",
  "Name",
  "CreatedOn"
 ],
 typeName: "WorkItem",
 paging:{"Limit":10, "From":0}
}

I hope this helps.

Best regards,

Roland

Roland Pumputis 0 votes
Comment actions Permalink