mary8886 | 2020-07-14 18:55:11 UTC | #1
Hi, I'm testing the cursor functionality in Postman on the following endpoint: /api/v2/analytics/conversations/details/jobs/{jobid}
I was able to return my first call with the jobid. Along with my result was a cursor, I executed another call with the cursor attached /api/v2/analytics/conversations/details/jobs/{jobid}/results?cursor=Y3Vyc29yX3. This returned another list of results with a cursor. I completed a similar call but with the new cursor value; however I received the following error: { "message": "IOException reading next record: java.io.IOException: (line 1) invalid char between encapsulated token and delimiter", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "7280a887-21e6-4110-bf1d-508be4631f4f", "details": [], "errors": [] }
Any suggestions on how to debug through this error? Thank you
anon11147534 | 2020-07-15 08:45:14 UTC | #2
Hi,
Firstly I'd suggest using our API Explorer to send the requests as it reduces the possibility of human error. Cursors normally have an "=" character at the end which is represented as "%3D" when sent in a query, the API Explorer will do this conversion for you automatically. The error you're getting indicates the server isn't able to parse the cursor value as it's invalid.
mary8886 | 2020-07-15 13:31:09 UTC | #3
@anon11147534 Do I need additional access to get to the API Explorer? I clicked on your link, when it prompts to sign-in I have tried my login infor for the Community and Developer forum, neither worked.
You would be correct in that my cursor has an "=" at the end. Although, I'm curious whether there's some inconsistency because I was able to make a call to the following cursor DgyNjg1NA== meanwhile I received an error on NzU5MzA=.
anon11147534 | 2020-07-15 15:15:16 UTC | #4
You may need extra access for the API Explorer. The person in your company who provided you with Genesys Cloud API credentials is probably the best to ask.
I'm not exactly sure why that happened. Without access to the API Explorer you could use a tool like this URL Encoder to correctly encode the cursor value for the request.
tim.smith | 2020-07-15 20:48:33 UTC | #5
mary8886, post:3, topic:8287
Do I need additional access to get to the API Explorer? I clicked on your link, when it prompts to sign-in I have tried my login infor for the Community and Developer forum, neither worked.
The Dev Tools API Explorer authenticates using Genesys Cloud authentication. Use your Genesys Cloud credentials from the org you want to make requests against.
system | 2020-08-15 21:00:35 UTC | #6
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: 8287