intercom / intercom-java

Java bindings for the Intercom API
https://developers.intercom.io/reference
Apache License 2.0
64 stars 68 forks source link

Exception when using Conversation.list #253

Closed luiszimmermann closed 4 years ago

luiszimmermann commented 5 years ago

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 team@intercom.io

Version info

Expected behavior

Get Conversations list

Actual behavior

Exceptionio.intercom.api.NotFoundException: Resource Not Found

Steps to reproduce

  1. ConversationCollection openForAdmin = Conversation.list([type: "admin", admin_id: adminId, open: "true", state: "open"])

Logs

io.intercom.api.NotFoundException: Resource Not Found
        at io.intercom.api.HttpClient.throwException(HttpClient.java:207)
        at io.intercom.api.HttpClient.handleError(HttpClient.java:169)
        at io.intercom.api.HttpClient.runRequest(HttpClient.java:155)
        at io.intercom.api.HttpClient.executeHttpMethod(HttpClient.java:110)
        at io.intercom.api.HttpClient.get(HttpClient.java:86)
        at io.intercom.api.HttpClient.get(HttpClient.java:82)
        at io.intercom.api.DataResource.list(DataResource.java:66)
        at io.intercom.api.Conversation.list(Conversation.java:66)
        at io.intercom.api.Conversation$list.call(Unknown Source)