Closed Nazarah closed 4 years ago
These urls in the pagination object of the Identity are as above and don't work. The pagination object for e565da23-8f57-454b-9494-1b95a48fae14
which is known to have 200 links looks like this:
"pagination": {
"inLinks": {
"links": [
{
"rel": "first",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=100"
},
{
"rel": "self",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=100"
},
{
"rel": "last",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=100&limit=100"
},
{
"rel": "next",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=100&limit=100"
}
],
"hasMore": true,
"totalCount": 200
},
"outLinks": {
"links": [
{
"rel": "first",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=100"
},
{
"rel": "self",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=100"
},
{
"rel": "last",
"href": "https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=100"
}
],
"hasMore": false,
"totalCount": 1
}
Things Zapier asked:
Environment: sandbox
Full request URL and method: GET https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=1&limit=10
All headers passed: {'Authorization': 'Bearer ' + <Bearer token>, "Content-Type" : "application/json" }
Client used: Node.js
Full error message from API:
{
"error": {
"status": 500,
"message": "Internal Server Error"
}
}
Describe the Pain in using this API
There is a bug in the sandbox with the Identity API for returning paginated links if the offset is something else than 0.
Indicate the importance in number
(1. Critical, 2. Important, 3. Nice-to-have) 1.
Additional context
https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=10 // works https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=0&limit=100 // works https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=100&limit=10 //
500 Internal server error
https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=1&limit=100 // 500Internal server error
https://api-sandbox.oftrust.net/identities/v1/e565da23-8f57-454b-9494-1b95a48fae14?offset=100&limit=100 //500 Internal server error