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

Wrong "metadata" property type in the jslack.api.model.Attachment #267

Closed
nikitayefanov opened this issue Nov 14, 2019 · 0 comments · Fixed by #270
Closed

Wrong "metadata" property type in the jslack.api.model.Attachment #267

nikitayefanov opened this issue Nov 14, 2019 · 0 comments · Fixed by #270

Comments

@nikitayefanov
Copy link

nikitayefanov commented Nov 14, 2019

Now it is String but I believe that it should be Object or some custom class because when I fetch conversation history for a conversation in files.attachments.metadata I receive an object but not a String, and because of that I'm getting a

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was
BEGIN_OBJECT at line 1 column 60127 path $.messages[29].files[0].attachments[0].metadata

I'm attaching the JSON file with an example of a message I get when I try to get conversations history.

seratch added a commit that referenced this issue Nov 15, 2019
Fix #267 Wrong "metadata" property type in the jslack.api.model.Attachment
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

Successfully merging a pull request may close this issue.

1 participant