intercom-java icon indicating copy to clipboard operation
intercom-java copied to clipboard

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

Open karthikrao5 opened this issue 3 years ago • 0 comments

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

karthikrao5 avatar Mar 31 '22 16:03 karthikrao5