-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Internal server error after adding custom fields #10979
Copy link
Copy link
Closed
Description
Description:
I've added some custom fields and while trying to save some info in it, cathing an error "Internal server error". Doesn't matter if you are user or admin or trying to register, if you are trying to write something in the costom fields, you will see error.
Server Setup Information:
- Version of Rocket.Chat Server: 0.65.1 (latest by this date)
- Operating System: debian 9
- Deployment Method(snap/docker/tar/etc): tar/pm2
- Number of Running Instances: 1
- DB Replicaset Oplog: unkown
- Node Version: v8.9.3
- mongoDB Version: v3.6.4
Steps to Reproduce:
- I've added custom field like this:
{
"Phone": {"type": "text",
"required": false,
"minLength": 2,
"maxLength": 100}
}
- I can see my custom field in my profile settings (admin account)
- Putting digits in the field
- Catching "Internal Server Error"
Also I'm cathing the same error when I'm trying to register a new account and put some info in the custom field.
Relevant logs:
0|rocketch | Exception while invoking method 'saveUserProfile' MongoError: Cannot create field 'Phone' in element {customFields: null}
0|rocketch | at Function.MongoError.create (/var/www/rocketchat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/error.js:31:11)
0|rocketch | at toError (/var/www/rocketchat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:139:22)
0|rocketch | at /var/www/rocketchat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/collection.js:1059:67
0|rocketch | at /var/www/rocketchat/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:469:18
0|rocketch | at _combinedTickCallback (internal/process/next_tick.js:131:7)
0|rocketch | at process._tickDomainCallback (internal/process/next_tick.js:218:9)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels