TanviPravinMainkar | 2018-09-07 00:38:31 UTC | #1
We are programmatically calling https://developer.mypurecloud.com/api/rest/v2/users/#postUsersSearch api for searching users based on user. We need to read the results array from response which contains user information for matched emails. However, the api returns an error when we try to set pageSize or omit it. Here's the error and request body: Error: 500: The server encountered an unexpected condition which prevented it from fulfilling the request. (code: internal.server.error)
Request body: { "sortBy": "email", "sortOrder": "ASC", "pageSize": 5, "pageNumber": 1, "query": [ { "value": "InsertEmailHere", "operator": "AND", "fields": ["email"], "type": "EXACT" } ] }
The same request works fine through developer api portal. Can anyone help with this issue?
tim.smith | 2018-09-07 14:13:02 UTC | #2
Can you provide the correlation ID from the 500 response?
TanviPravinMainkar | 2018-09-07 20:04:33 UTC | #3
Here's the correlation iD: 08b176b7-43e8-4136-9e74-02bcf43a5fca
Also, want to highlight that the request is being made through an SDK.
tim.smith | 2018-09-10 21:07:43 UTC | #4
Please open a case with PureCloud Care to investigate this further. There is an error in a back end service that requires further investigation that cannot be done via the forum. I had a hunch that the 500 wasn't actually a server error, but my hunch was incorrect.
system | 2018-10-11 21:07:43 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3506