Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 10002 exception occurs when offlinePushInfo is null #2987

Open
cipchk opened this issue Dec 22, 2024 · 2 comments
Open

[BUG] 10002 exception occurs when offlinePushInfo is null #2987

cipchk opened this issue Dec 22, 2024 · 2 comments
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@cipchk
Copy link

cipchk commented Dec 22, 2024

OpenIM Server Version

3.8.2

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

当调用 sendMessage 并不传递 offlinePushInfo 值(或给 null)时,产生以下异常。

flutter: │ 🐛 ChatView,11:50:33.651:message send failed e :PlatformException(10002, unexpected end of JSON input, null, null)  #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:646:7)
flutter: │ 🐛 #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
flutter: │ 🐛 <asynchronous suspension>
flutter: │ 🐛 #2      MessageManager.sendMessage.<anonymous closure> (package:flutter_openim_sdk/src/manager/im_message_manager.dart:53:17)
flutter: │ 🐛 <asynchronous suspension>
flutter: │ 🐛 #3      ChatLogic._sendMessage.<anonymous closure> (package:im/pages/chat/logic.dart:674:15)
flutter: │ 🐛 <asynchronous suspension>
flutter: │ 🐛 #4      ChatLogic._sendMessage.<anonymous closure> (package:im/pages/chat/logic.dart:679:20)
flutter: │ 🐛 <asynchronous suspension>

Screenshots Link

No response

@cipchk cipchk added the bug Categorizes issue or PR as related to a bug. label Dec 22, 2024
@OpenIM-Robot OpenIM-Robot changed the title [BUG] 当 offlinePushInfonull 时产生 10002 异常 [BUG] 10002 exception occurs when offlinePushInfo is null Dec 22, 2024
@cipchk
Copy link
Author

cipchk commented Dec 22, 2024

另外一点所有 SDK 里面的 offlinePushInfo 发送消息接口都是必填,那么应该怎么处理群不推送离线消息呢?

@OpenIM-Robot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Another point is that the offlinePushInfo message sending interface in all SDKs is required. So how should we deal with the group not pushing offline messages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants