Open autumnw opened 7 years ago
I found the problem lies in room ID: In redis, the room ID missed the domain name "@chat.hipchat.com", while user ID is correct. That is why user works, but Room does not work. In hipchat, the Room ID does include the domain name "XMPP JID 669627_self-serv@conf.hipchat.com".
irb(main):024:0> redis.keys('*lita:rooms:*')
=> ["lita:rooms:name:669627_self-serv", "lita:rooms:name:599001_ilo-bot-testing", "lita:rooms:name:599001_self-serv", "lita:rooms:id:599001_self-serv", "lita:rooms:id:669627_self-serv", "lita:rooms:id:599001_devtestroom", "lita:rooms:name:669627_awang-test", "lita:rooms:id:669627_awang-test", "lita:rooms:id:599001_ilo-bot-testing", "lita:rooms:name:599001_devtestroom"]
irb(main):025:0> redis.keys('*lita:rooms:id*')
=> ["lita:rooms:id:599001_self-serv", "lita:rooms:id:669627_self-serv", "lita:rooms:id:599001_devtestroom", "lita:rooms:id:669627_awang-test", "lita:rooms:id:599001_ilo-bot-testing"]
irb(main):026:0> redis.keys('*lita:users:id*')
=> ["lita:users:id:599001_4074394@chat.hipchat.com", "lita:users:id:599001_4074736@chat.hipchat.com", "lita:users:id:599001_4074915@chat.hipchat.com", "lita:users:id:599001_4074451@chat.hipchat.com", "lita:users:id:599001_4074727@chat.hipchat.com", "lita:users:id:599001_4080057@chat.hipchat.com", "lita:users:id:599001_4675343@chat.hipchat.com", "lita:users:id:599001_4263932@chat.hipchat.com", "lita:users:id:599001_4075411@chat.hipchat.com", "lita:users:id:669627_4681583@chat.hipchat.com", "lita:users:id:599001_4267255@chat.hipchat.com", "lita:users:id:669627_4681600@chat.hipchat.com", "lita:users:id:669627_4681881@chat.hipchat.com", "lita:users:id:599001_4074731@chat.hipchat.com", "lita:users:id:599001_4193374@chat.hipchat.com", "lita:users:id:599001_4290462@chat.hipchat.com", "lita:users:id:599001_4190557@chat.hipchat.com", "lita:users:id:599001_4434091@chat.hipchat.com", "lita:users:id:599001_4074735@chat.hipchat.com"]
Hi,
I try to have Lita BOT to send_messages to a hipchat room, but never succeeded. Here are my code:
And the log likes the following: We can see it sent to the user successfully, but did not send message to the room. So what could be the problem?