Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConversationsV1.PageConversation does not work except for the first call #226

Open
liangwen-anzx opened this issue Feb 1, 2024 · 2 comments

Comments

@liangwen-anzx
Copy link

Issue Summary

ConversationsV1.PageConversation does not work when trying to fetch next page with a pageToken and pageNumber. It always return an empty result.

Cause of the problem: Conversations api returns a pageToken like PTclosed_2024-01-18T03:17:17.005Z_CHa09ace6334284f0aa7f988ebad3e231a while other endpoints return a hashed token like this ENZXlKbGRtVnVkRjlrWVhSbElqb3hOekEyTlRBek1qVTJNREF3TENKemFXUWlPaUpCUlRFek5tVXpOekJpTXpoak1tTTRPR1ptTVRRMU1EWXhNMk15TVRNME1HTXhJbjA9

The .005 inside Conversation pageToken will be eliminated in the SendRequest method in client.go which breaks the token.

Steps to Reproduce

1, call PageConversation method with empty pageNumber and pageToken
2, parse the response and get pageNumber and pageToken for next page
3, call PageConversation again with pageNumber and pageToken for next page.

Technical details:

  • twilio-go version: 1.17.0
  • go version: 1.21
@tiwarishubham635
Copy link
Contributor

Asking it to the downstream team

@tiwarishubham635
Copy link
Contributor

Need to check this regex, working on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants