slack icon indicating copy to clipboard operation
slack copied to clipboard

json: cannot unmarshal object into Go struct field Attachment.messages.attachments.blocks of type slack.Block

Open zfLQ2qx2 opened this issue 5 years ago • 2 comments

I'm getting the error "json: cannot unmarshal object into Go struct field Attachment.messages.attachments.blocks of type slack.Block" while doing api.GetConversationHistory.

It appears there is a potential fix here - https://github.com/nlopes/slack/pull/638 but seems to be stalled over last 30 days.

I can confirm that the actual one-liner fix from that PR does work, the majority of the PR is a unit test to verify correct behavior.

zfLQ2qx2 avatar Jan 08 '20 07:01 zfLQ2qx2

@nlopes Any update on this, please? We also really need this PR, and can verify that the one line fix solves the problem of unmarshalling attachments in our case too.

gvirtanen avatar Jan 16 '20 10:01 gvirtanen

same here, need the PR in #638

bitsofinfo avatar Feb 11 '20 18:02 bitsofinfo

I think this can be closed, #638 is merged

rusq avatar Mar 11 '24 05:03 rusq

Closed by #638

parsley42 avatar Mar 11 '24 12:03 parsley42