slack-rs: Cannot login with 0.17
So I’ve updated to 0.17 but RtmClient::login fails. The reported error is just
Api("rtm::StartError: JSON error")
Did some digging to get
ErrorImpl { code: Message("invalid type: sequence, expected a map"), line: 1, column: 35882 }
That would be "fields":[] contained in a profile of a user in users in the startresponse
We have no custom fields because we don’t have the paid features so the list being empty seems fair. The expected type though is an object so it says no
https://github.com/slack-rs/slack-api-schemas/blob/master/objects/user_profile.json#L44
50 or so users have "fields": null, the other 20 ish have “fields”: [],
https://api.slack.com/types/user does not not mention what the types of fields should be
but right now it won’t login with 0.17 😦 sad times
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (16 by maintainers)
@dten is working on the fix in a PR in slack-rs-api. Should be in soon. Will release new version there and here when it is merged. On Tue, May 2, 2017 at 1:05 AM Jordon notifications@github.com wrote:
Will take feedback over to the individual PRs. Thanks for doing that!
I’m a little confused about the whole thing but I have something working
First to the generator so it can generate untagged enum deserialize https://github.com/slack-rs/slack-rs-api/pull/38
Second to the schema to specif
fieldsis an untagged enum of map, or array (of string cause… there is no actual type?) https://github.com/slack-rs/slack-api-schemas/pull/2look about right?
also slack have filed a bug https://twitter.com/SlackAPI/status/857303209597165568