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

Error in $.user: key "deleted" not present #102

Open
mbbx6spp opened this issue Jun 26, 2019 · 1 comment · May be fixed by #103
Open

Error in $.user: key "deleted" not present #102

mbbx6spp opened this issue Jun 26, 2019 · 1 comment · May be fixed by #103

Comments

@mbbx6spp
Copy link
Contributor

I get this error message using revision ab91568 of this repository:

Error in $.user: key "deleted" not present
Please report this failure to the github issue tracker

The prettified anonymized JSON payload generating this error is:

{
  "type": "user_change",
  "user": {
    "id": "XXXX5N2F",
    "team_id": "T5XXXXXX",
    "name": "some_user",
    "color": "e7392d",
    "is_bot": false,
    "is_app_user": false,
    "profile": {
      "avatar_hash": "xxxxxx86xxxx",
      "image_original": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_original.jpg",
      "image_24": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_24.jpg",
      "image_32": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_32.jpg",
      "image_48": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_48.jpg",
      "image_72": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_72.jpg",
      "image_192": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_192.jpg",
      "image_512": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_512.jpg",
      "image_1024": "https://avatars.slack-edge.com/2017-11-02/xxxxxx86xxxxecd68cf0_1024.jpg",
      "first_name": "Some",
      "last_name": "Name",
      "real_name": "Some Name",
      "display_name": "some_user",
      "real_name_normalized": "Some Name",
      "display_name_normalized": "some_user",
      "team": "T5XXXXXX"
    },
    "updated": 1561557818
  },
  "cache_ts": 1561557818,
  "channel": "XXXXXDK71",
  "event_ts": "1561557818.356600"
}

Slack API has a deleted key according to these docs:
https://api.slack.com/types/user

The slack-api code is expecting a deleted flag attribute )https://github.com/mpickering/slack-api/blob/master/src/Web/Slack/Types/User.hs#L29) but in the user_change event inclusion of the user entity it does not appear to be sending it. :(

Not sure this should be fixed in slack-api but I wanted to record the ticket and then refer to it for Slack to see if they fix their end or their documentation.

I retained the timestamp data in case it is useful for Slack to troubleshoot if it is a cache issue on their server side.

Cheers.

@mbbx6spp
Copy link
Contributor Author

mbbx6spp commented Jun 26, 2019

I will try to submit a PR later this week (when Slack updates their documents). Thanks.

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