open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[BUG] FCM offline push error

Open kevin-952800 opened this issue 7 months ago • 5 comments

OpenIM Server Version

v3.8.3-patch.3

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

openim-server  | ]                      [push/push_handler.go:199]                              offlinePushMsg failed 

{
"platform": "OSX",
"connID": "0a68df842fbf828eaae1478213162f6d",
"operationID": "36ee51ae-95d5-4bda-b12a-d1d0e5e1083e",
"opUserID": "1106471838",
"needOfflinePushUserID length": 1,
"msg": "sendID:\"1106471838\" recvID:\"6418063327\" clientMsgID:\"5d3875920c7618c08e996f21c0f44563\" serverMsgID:\"bed993b6d11d54358e5edd09e1b85832\" senderPlatformID:4 senderNickname:\"22223333\" sessionType:1 msgFrom:100 contentType:101 content:\"{\\\"content\\\":\\\"f\\\"}\" seq:10 sendTime:1745376371697 createTime:1745376371553 status:2 offlinePushInfo:{title:\"New message\" iOSPushSound:\"+1\" iOSBadgeCount:true} attachedInfo:\"null\"",
"error": "code 20001, msg appid is invalid"
}

=====================

error": "code 20001, msg appid is invalid"

I wrote a test script fcm_test.sh to send a test message

I entered docker, fcm_test.sh sent, and the phone could receive the fcm push message

I have been searching for a long time but have not found the problem. Is this error returned by firebase? Because I did not search for "20001" in the server code

Hope to get your help, Thanks。

Screenshots Link

Image

Image

Image

kevin-952800 avatar Apr 23 '25 03:04 kevin-952800

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

OpenIM-Robot avatar Apr 23 '25 03:04 OpenIM-Robot

You can't use volumes in Docker; instead, you have to use environment variables

skiffer-git avatar Apr 24 '25 12:04 skiffer-git

Refer to: https://github.com/openimsdk/openim-docker/issues/136

skiffer-git avatar Apr 24 '25 12:04 skiffer-git

I have the same error

jimwei avatar Jul 10 '25 07:07 jimwei

Image docker 部署推送就是有问题

zl530380 avatar Aug 19 '25 06:08 zl530380