[BUG] When I use the API to register a new user, I get the error message "secret invalid: 1002 NoPermissionError."
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
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.
"userID": "imAdmin111" should be imAdmin
userID need should be imAdminUserID field value in config/share.yml
"userID": "imAdmin111" should be imAdmin
"errDlt": ": 1004 RecordNotFoundError userID not found: 1004 RecordNotFoundError".管理员用这个ID的,会提示这个错误
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.
userID need should be imAdminUserID field value in
config/share.yml
没有您说的这个文件。只有config.yml。也没有您说的imAdminUserID这个字段。我是docker安装部署的
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.
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.
"userID": "imAdmin111" should be imAdmin
"userID": "imAdmin111"
开始用的“imAdmin”,报的错误是一样的。你们用api注册用户可以成功吗
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?
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".