openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
40 stars 54 forks source link

[BUG] Push error #154

Closed hackerjmss closed 1 month ago

hackerjmss commented 3 months ago

OpenIM Server Version

3.7.1

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

我在docker_compost 里面配置了

  - IMENV_OPENIM_PUSH_GETUI_PUSHURL=${PUSHURL}
  - IMENV_OPENIM_PUSH_GETUI_MASTERSECRET=${MASTERSECRET}
  - IMENV_OPENIM_PUSH_GETUI_APPKET=${APPKET}

然后在 env 里面也配置好了参数,但是无法推送,我不知道是哪里的问题

Screenshots Link

No response

kubbot commented 3 months ago

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.

hackerjmss commented 3 months ago

2024-07-07 08:06:59.123 WARN [PID:893]  openim-push  [version:3.7.0] [push/push_handler.go:111] push failed {"operationID": "openIM123123123123", "msg": "msgData:{sendID:\"22742968\" recvID:\"72479211\" clientMsgID:\"e9c904e6ca9cb3d0adb66ee62b3949ee\" serverMsgID:\"6949bf4104b11c4b3d88a35959a3c050\" senderPlatformID:2 senderNickname:\"止令小秘书\" senderFaceURL:\"https://zhilingupdate.oss-cn-beijing.aliyuncs.com/upload/3549de20-7c52-11ee-9794-559f05954d1a.jpg\" sessionType:1 msgFrom:200 contentType:101 content:\"{\\"content\\":\\"主人,您的动态涉及到违规,已被小秘书封禁了,请勿再发布类似动态,容易触发封号风险呢~\\"}\" seq:67 sendTime:1720339619006 createTime:1720339619005 offlinePushInfo:{title:\"止令小秘书\" desc:\"主人,您的动态涉及到违规,已被小秘书封禁了,请勿再发布类似动态,容易触发封号风险呢~\" ex:\"string\" iOSPushSound:\"+1\" iOSBadgeCount:true}} conversationID:\"si_22742968_72479211\"", "error": "code 20001, msg appkey cannot be empty or null"}

我本地部署的是可以正常推送,但是正式环境的提示 appkey 不存在,这是什么原因?

icey-yu commented 1 month ago

There is a spelling error: IMENV_OPENIM_PUSH_GETUI_APPKEY