MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    机器人被群友发起临时会话的消息接收不到

    BUG反馈
    7
    9
    768
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 火
      火之悲伤 最后由 火之悲伤 编辑

      用的是 mcl + mirai-http-api,一开始以为是 mirai-http-api 没正确送出消息,但看了下 .mcl 的 cmd 输出,发现并没有打印群友临时会话的消息(之前被正确处理的消息均有正常打印出来)。

      群友仅通过群发起临时会话,与机器人不存在其它关系。

      这个问题在 mcl 重启后会立刻解决,但 mcl 运行一段时间后又会复发。同时似乎需要比较多的临时会话刺激。在本地自测用的机器人运行很长时间也并不能复现这个问题。。

      mirai 三大件是 2.6.4 版本,mirai-http-api 是 v1.11.0。

      谢谢

      1 条回复 最后回复 回复 引用 0
      • A
        a58843825 最后由 编辑

        同上,坐等解决

        1 条回复 最后回复 回复 引用 0
        • L
          laocunzhang 最后由 编辑

          同上,坐等解决

          1 条回复 最后回复 回复 引用 0
          • RainChan
            RainChan 摸鱼 最后由 编辑

            @Him188

            1 条回复 最后回复 回复 引用 0
            • Him188
              Him188 最后由 编辑

              请在 https://github.com/mamoe/mirai/issues/new?assignees=&labels=question&template=bug.md&title= 提交,尽可能附带全面的日志,如果能有标准步骤复现最好

              1 条回复 最后回复 回复 引用 0
              • L
                laocunzhang 最后由 编辑

                java.util.NoSuchElementException: group 2055561833
                at net.mamoe.mirai.Bot.getGroupOrFail(Bot.kt:152)
                at net.mamoe.mirai.internal.message.OnlineMessageSourceFromTempImpl.<init>(incomingSourceImpl.kt:139)
                at net.mamoe.mirai.internal.message.ReceiveMessageTransformer.createMessageSource(ReceiveMessageHandler.kt:109)
                at net.mamoe.mirai.internal.message.ReceiveMessageHandlerKt.toMessageChain(ReceiveMessageHandler.kt:83)
                at net.mamoe.mirai.internal.message.ReceiveMessageHandlerKt.toMessageChainOnline(ReceiveMessageHandler.kt:49)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvc_PbGetMsgKt.transform(MessageSvc.PbGetMsg.kt:515)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvc_PbGetMsgKt.transform$default(MessageSvc.PbGetMsg.kt:248)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$5.invokeSuspend(MessageSvc.PbGetMsg.kt:184)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$5.invoke(MessageSvc.PbGetMsg.kt)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2.emit(Collect.kt:134)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filter$1$2.emit(Collect.kt:135)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$2$invokeSuspend$$inlined$filter$1$2.emit(Collect.kt:135)
                at kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(SafeCollector.common.kt:115)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$messages$2$invokeSuspend$$inlined$filter$1.collect(SafeCollector.common.kt:114)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1$lambda$1.emit(Collect.kt:134)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2.emit(Collect.kt:134)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filterNot$1$2.emit(Collect.kt:135)
                at kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(SafeCollector.common.kt:115)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filterNot$1.collect(SafeCollector.common.kt:114)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.collect(SafeCollector.common.kt:114)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$$inlined$filter$1.collect(SafeCollector.common.kt:114)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.collect(SafeCollector.common.kt:114)
                at kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:114)
                at kotlinx.coroutines.flow.FlowKt__CollectionKt.toCollection(Collection.kt:32)
                at kotlinx.coroutines.flow.FlowKt.toCollection(Unknown Source)
                at kotlinx.coroutines.flow.FlowKt__CollectionKt.toList(Collection.kt:15)
                at kotlinx.coroutines.flow.FlowKt.toList(Unknown Source)
                at kotlinx.coroutines.flow.FlowKt__CollectionKt.toList$default(Collection.kt:15)
                at kotlinx.coroutines.flow.FlowKt.toList$default(Unknown Source)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg.decode(MessageSvc.PbGetMsg.kt:188)
                at net.mamoe.mirai.internal.network.protocol.packet.chat.receive.MessageSvcPbGetMsg$decode$1.invokeSuspend(MessageSvc.PbGetMsg.kt)
                at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
                at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
                at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
                at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

                1 条回复 最后回复 回复 引用 0
                • L
                  laocunzhang 最后由 编辑

                  未加好友的群友发的临时会话消息无法接收到

                  1 条回复 最后回复 回复 引用 0
                  • G
                    G4-SIMPLE 最后由 编辑

                    同上,坐等解决

                    1 条回复 最后回复 回复 引用 0
                    • S
                      SLiGe 最后由 编辑

                      未加好友的群友发的临时会话消息无法接收到,已经加好友的也无法获取到(单向)

                      1 条回复 最后回复 回复 引用 0
                      • 1 / 1
                      • First post
                        Last post
                      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact