Title: IllegalStateException when deserializing message using conversation.history · Issue #1426 · slackapi/java-slack-sdk · GitHub
Open Graph Title: IllegalStateException when deserializing message using conversation.history · Issue #1426 · slackapi/java-slack-sdk
X Title: IllegalStateException when deserializing message using conversation.history · Issue #1426 · slackapi/java-slack-sdk
Description: Using conversations.history, we are getting exceptions when the slack sdk attempts to deserialize a customer's message history. The issue is in the groups field inside the first attachment of the first file in the 169th message of the me...
Open Graph Description: Using conversations.history, we are getting exceptions when the slack sdk attempts to deserialize a customer's message history. The issue is in the groups field inside the first attachment of the f...
X Description: Using conversations.history, we are getting exceptions when the slack sdk attempts to deserialize a customer's message history. The issue is in the groups field inside the first attachment of t...
Opengraph URL: https://github.com/slackapi/java-slack-sdk/issues/1426
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IllegalStateException when deserializing message using conversation.history","articleBody":"Using conversations.history, we are getting exceptions when the slack sdk attempts to deserialize a customer's message history.\n\nThe issue is in the groups field inside the first attachment of the first file in the 169th message of the messages array in the API response is expected to be an array in your sdk but turned out to be an object.\n\n-------\n\nGot an exception while calling conversations.history API (team: ****, error: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 164106 path $.messages[169].attachments[0].files[0].groups See https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)\n\n```\n j.l.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 164106 path $.messages[169].attachments[0].files[0].groups\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure\n\tat c.g.g.s.JsonReader.unexpectedTokenError(JsonReader.java:1768)\n\tat c.g.g.s.JsonReader.beginArray(JsonReader.java:430)\n\tat c.g.g.i.b.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)\n\tat c.g.g.i.b.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:59)\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$2.readIntoField(ReflectiveTypeAdapterFactory.java:267)\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:558)\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:516)\n\t... 33 common frames omitted\nWrapped by: c.g.g.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 164106 path $.messages[169].attachments[0].files[0].groups\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:520)\n\tat c.g.g.i.b.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)\n\tat c.g.g.i.b.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:83)\n\tat c.g.g.i.b.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:59)\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$2.readIntoField(ReflectiveTypeAdapterFactory.java:267)\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:558)\n\tat c.g.g.i.b.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:516)\n\tat c.g.g.i.b.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)\n\tat c.g.g.i.b.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:83)\n\tat c.g.g.i.b.Collect...\n\n```","author":{"url":"https://github.com/rasharab","@type":"Person","name":"rasharab"},"datePublished":"2025-01-24T23:53:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1426/java-slack-sdk/issues/1426"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:238267eb-5d74-8624-43ca-03a44814f359 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDB4:9FD91:234826:2EA774:6A4C26A7 |
| html-safe-nonce | 464a1fb55395e841b8bbd40633bf0d5cdd07af896cdb026cc4752364a30b35a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREI0OjlGRDkxOjIzNDgyNjoyRUE3NzQ6NkE0QzI2QTciLCJ2aXNpdG9yX2lkIjoiNDUzMzM3NTgzNzQyMzYzMzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 14c4919e096f4057eb4b8f3292a052af0375372465aa12aa1eadafebb621f0d6 |
| hovercard-subject-tag | issue:2810609753 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/slackapi/java-slack-sdk/1426/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6fb41ce72950e4274d678e8242e148c0e0be37a393ef1b618a6f3dff3f0432b/slackapi/java-slack-sdk/issues/1426 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6fb41ce72950e4274d678e8242e148c0e0be37a393ef1b618a6f3dff3f0432b/slackapi/java-slack-sdk/issues/1426 |
| og:image:alt | Using conversations.history, we are getting exceptions when the slack sdk attempts to deserialize a customer's message history. The issue is in the groups field inside the first attachment of the f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rasharab |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| go-import | github.com/slackapi/java-slack-sdk git https://github.com/slackapi/java-slack-sdk.git |
| octolytics-dimension-user_id | 6962987 |
| octolytics-dimension-user_login | slackapi |
| octolytics-dimension-repository_id | 62449869 |
| octolytics-dimension-repository_nwo | slackapi/java-slack-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62449869 |
| octolytics-dimension-repository_network_root_nwo | slackapi/java-slack-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width