Rooms with only one member are having a different format in the json object and would result in an error:
# hipmost -v public import "site" 'Company':"site"
site
Parsing rooms for Hipchat and Mattermost...
Hipchat room is: site
Mattermost team & channel are: Company:site
Successfully parsed rooms
Opening /root/migrate/site.jsonl for writing...
Writing version header...
Writing team info...
Writing channel info...
Writing room members...
Traceback (most recent call last):
14: from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
13: from /usr/local/rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
12: from /usr/local/rvm/gems/ruby-2.5.1/bin/hipmost:23:in `<main>'
11: from /usr/local/rvm/gems/ruby-2.5.1/bin/hipmost:23:in `load'
10: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/exe/hipmost:48:in `<top (required)>'
9: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost.rb:14:in `run'
8: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:23:in `run'
7: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:47:in `import'
6: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:54:in `save'
5: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:54:in `open'
4: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:64:in `block in save'
3: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:64:in `each'
2: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:65:in `block (2 levels) in save'
1: from /usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:65:in `each'
/usr/local/rvm/gems/ruby-2.5.1/gems/hipmost-1.0/lib/hipmost/cmds/room.rb:66:in `block (3 levels) in save': undefined method `to_jsonl' for nil:NilClass (NoMethodError)
Rooms with only one member are having a different format in the json object and would result in an error:
data/rooms.json