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

List for tags and contacts returns empty response (no data) #303

Open
karthikrao5 opened this issue Mar 31, 2022 · 0 comments
Open

List for tags and contacts returns empty response (no data) #303

karthikrao5 opened this issue Mar 31, 2022 · 0 comments

Comments

@karthikrao5
Copy link

Please use the following template to submit your issue. Following this template will allow us to quickly investigate and help you with your issue. Please be aware that issues which do not conform to this template may be closed.

For feature requests please contact us at [email protected]

Version info

  • intercom-java version: 2.8.2
  • Java version: Using kotlin version 1.5.20

Expected behavior

I expect a list of data for tags or contacts to be returned in the iterator

Actual behavior

iterator is empty and hasNext() is always false

Steps to reproduce

  1. call Intercom.setToken("api-key") (confirmed this was correct by hitting the rest endpoint directly from postman
  2. call Tag.list()
  3. While loop iterator prints nothing
       val tags = Tag.list()
       while(tags.hasNext()) {
           println(tags.next())
       }

Debugger shows pages and page being empty.

The tag.create function works correctly and adds the tag that i can see in my workspace

val tag = Tag.create(Tag().setName("new tag from api again"))

Logs

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

1 participant