Sign Up
Swapnil_Pandey | 2024-10-15 16:38:11 UTC | #1
When paginating through the Genesys Users API, I receive a 400 Bad Request error when my application tries to access the 121st page. The error persists irrespective of the page size provided. Is there a limit on URL length or nexturi parameter length for the API? Any insights or fixes would be helpful.
this is the sample for endpoint: https://api.usw2.pure.cloud/api/v2/users?expand=authorization&expand=employerInfo?pageSize%3D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo%253FpageSize%253D4&expand=authorization&expand=employerInfo&pageNumber=121&pageSize=4
tim.smith | 2024-10-15 16:41:48 UTC | #2
Does it make a difference if you specify the expand parameter once instead of 242 times?
Swapnil_Pandey | 2024-10-15 16:48:40 UTC | #3
We are picking up this value from 'nexturi' key from the response of the previous page(in this case, response of the 120th page)
tim.smith | 2024-10-15 17:04:25 UTC | #4
If you didn't send 242 expand parameters on your request also, please open a case with Care to report that issue. That's not correct.
tim.smith, post:2, topic:29884, full:true Does it make a difference if you specify the expand parameter once instead of 242 times?
Can you answer this?
Swapnil_Pandey | 2024-10-15 17:10:25 UTC | #5
I'm adding expand two times only to include employerInfo and authorization, but it is getting added to the url everytime with a new url forming
tim.smith | 2024-10-15 17:14:23 UTC | #6
This works fine for me; I'm unable reproduce your issue. The response is always returned with the exact expand params I send in the request. If you're certain you're not sending excess values in the request, please open a case with Genesys Cloud Care to investigate further.
system | 2024-11-14 17:14:42 UTC | #7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 29884
Copyright© 2025 Genesys. All rights reserved. Terms of Use | Privacy Policy