dutchcoders / dutchcoders/slackarchive-import

importChannel: json: cannot unmarshal string into Go struct field Channel.created of type slack.JSONTime

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I have installed slackarchive and running at http://51.15.224.203:8080

Then I git-ed slackarchive-import. So the current folder structure looks -
/root/slackarchive-docker
/root/slackarchive-import

The Slack domain is - unofficed

So extracted all the contents of the zip file in /root/slackarchive-import/data/unofficed/

Updated the token!

`docker run --mount type=bind,source=$(pwd)/config.yaml,target="/config/config.yaml" --mount type=bind,source=$(pwd)/data/,target=$(pwd)/data1 --network slackarchive dutchcoders/slackarchive-import -- xoxb-token $(pwd)/data1`

After lots of struggle, I ran this line. It shows a string of "user already exists" and then shows this error -
`
2018/07/23 19:02:29 importChannel: json: cannot unmarshal string into Go struct field Channel.created of type slack.JSONTime`

But the Jsons are supplied by Slack only. What did I do wrong? Any change in slack exports?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented docker command with the Slack export under data/unofficed/. Trace the importChannel entry point and handling of Channel.created and slack.JSONTime; done means the supplied export imports without the unmarshal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.