openim-docker icon indicating copy to clipboard operation
openim-docker copied to clipboard

[BUG] When I use the API to register a new user, I get the error message "secret invalid: 1002 NoPermissionError."

Open weiwuxing opened this issue 1 year ago • 11 comments

OpenIM Server Version

最新版

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

先获取的管理员token,{ "secret": "openIM123", "platformID": 10,(或1都试过) "userID": "imAdmin111" },然后去注册的新用户。提示上面的问题。

Screenshots Link

WX20240926-144621

weiwuxing avatar Sep 26 '24 06:09 weiwuxing

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 Sep 26 '24 06:09 OpenIM-Robot

"userID": "imAdmin111" should be imAdmin

skiffer-git avatar Sep 26 '24 09:09 skiffer-git

userID need should be imAdminUserID field value in config/share.yml

mo3et avatar Sep 26 '24 09:09 mo3et

"userID": "imAdmin111" should be imAdmin

"errDlt": ": 1004 RecordNotFoundError userID not found: 1004 RecordNotFoundError".管理员用这个ID的,会提示这个错误

weiwuxing avatar Sep 26 '24 10:09 weiwuxing

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


"userID": "imAdmin111" should be imAdmin

"errDlt": ": 1004 RecordNotFoundError userID not found: 1004 RecordNotFoundError". If the administrator uses this ID, this error will be prompted.

OpenIM-Robot avatar Sep 26 '24 10:09 OpenIM-Robot

userID need should be imAdminUserID field value in config/share.yml

没有您说的这个文件。只有config.yml。也没有您说的imAdminUserID这个字段。我是docker安装部署的

weiwuxing avatar Sep 26 '24 10:09 weiwuxing

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 Sep 27 '24 01:09 OpenIM-Robot

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 Sep 27 '24 01:09 OpenIM-Robot

"userID": "imAdmin111" should be imAdmin

skiffer-git avatar Sep 27 '24 01:09 skiffer-git

"userID": "imAdmin111"

开始用的“imAdmin”,报的错误是一样的。你们用api注册用户可以成功吗

weiwuxing avatar Sep 27 '24 01:09 weiwuxing

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


"userID": "imAdmin111"

When I started using "imAdmin", the error reported was the same. Can you successfully register users using the api?

OpenIM-Robot avatar Sep 27 '24 01:09 OpenIM-Robot

In the current version, you need to add a "secret" field in the JSON to make a request. After updating the Docker version, only an admin token will be required for registration, eliminating the need for a "secret".

icey-yu avatar Oct 08 '24 07:10 icey-yu