slack-term icon indicating copy to clipboard operation
slack-term copied to clipboard

Crash: json: cannot unmarshal object into Go

Open lunemec opened this issue 4 years ago • 7 comments

2020/03/20 15:30:04 json: cannot unmarshal object into Go struct field Attachment.messages.attachments.blocks of type slack.Block

Version: 2ee21247add4e50660e8b3b90b285814d21d8ad6 Installation method: go get -u github.com/erroneousboat/slack-term

lunemec avatar Mar 20 '20 14:03 lunemec

Related: https://github.com/slack-go/slack/issues/645

jpbruinsslot avatar Mar 21 '20 07:03 jpbruinsslot

Hi @lunemec @erroneousboat Can I try solving this ? (Crash: json: cannot unmarshal object into Go #237)

vraj9845 avatar Mar 27 '20 14:03 vraj9845

Gathering from the issue on slack-go, there has been a merge of a pull request that might resolve the issue. I've updated the code to use the newest version of slack-go on master. Check out master to see if the problem persists or not.

jpbruinsslot avatar Mar 28 '20 07:03 jpbruinsslot

Encountered the same issue. Will test 0.5.1 once released.

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

andreas-ebot7 avatar Mar 29 '20 22:03 andreas-ebot7

@erroneousboat , I was using the 0.5.0 binary version and had the same bug. I just installed slack-term from master with the go method.

No more crashes.

adesprez avatar May 22 '20 09:05 adesprez

Hey, any progress on this? maybe a new release? because the 0.5.0 release contains it, as the comment above specified...

Pobek avatar Feb 28 '22 14:02 Pobek

I had to do go install github.com/erroneaousboat/slack-term@master then ~/go/bin/slack-term to get it to work

elmehalawi avatar May 31 '22 06:05 elmehalawi