Post

2 followers Follow
0
Avatar

Missing Argument: typeName

I've written an integration with your REST API and it has been working well for several months. Recently one call is failing to the EntityQuery end-point.

Logins and session status call with use the same methods work just fine. I'm using a Node with Express to send the requests.

I can see the body I'm sending in my request.

REQUEST { url: 'https://api2.clarizen.com/v2.0/services/data/entityQuery',
type: 'POST',
headers: { Authorization: 'Session 3c644f4d-3820-4034-b982-5d423ca04574_240474' },
json: true,
body:
{ typeName: 'Task',
fields: [ 'Name', 'Manager.Name', 'DueDate' ],
orders: [ [Object] ],
paging: { limit: 50 },
where: { and: [Object] } },
callback: [Function] }
REQUEST make request https://api2.clarizen.com/v2.0/services/data/entityQuery

But I still get this error:

{ errorCode: 'MissingArgument',
message: 'Missing argument: typeName',
referenceId: '3vxNCV5viMeyuEMK9WTjd6'
}

Now if I make the same request using Postman it works. What can you tell me about the error reference. Is the body empty on your side? Is it wrapped in something unexpected?

Thanks for your help.

- dan

Dan Flies Answered

Official comment

Avatar

Hi Dan,

I am not able to view additional data regarding your issue. I've also tested it in Postman and, as you said, it works as expected. If you are not able to get the exact posted data from your code please try to use tools like Fiddler to monitor your network requests and find what is transmitted to the Clarizen API.

If you are not able to do that please contact our support team for additional assistance.

I hope this helps,

Elad

Elad Franklin
Comment actions Permalink

Please sign in to leave a comment.

1 comment