Skip to content

Sample Chat Not Working for MongoDB #283

@SteveSande

Description

@SteveSande

In the "Creating an App" section of the docs set the stack to use MongoDB. I had the issue for both TypeScript and JavaScript. Follow the instructions to create the app with GitHub login. See if you also get the following error for Github login:

error: BadRequest: validation failed
at UserService. (S:\Temp\feathers-chat\node_modules@feathersjs\schema\lib\hooks\validate.js:47:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
error: Data: [
{
instancePath: '/email',
schemaPath: '#/properties/email/type',
keyword: 'type',
params: { type: 'string' },
message: 'must be string'
}
]
error: BadRequest: validation failed
at UserService. (S:\Temp\feathers-chat\node_modules@feathersjs\schema\lib\hooks\validate.js:47:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
error: Data: [
{
instancePath: '/email',
schemaPath: '#/properties/email/type',
keyword: 'type',
params: { type: 'string' },
message: 'must be string'
}
]

I was able to get it working when cloning the sample repo and also when creating it myself from the instructions using SQL. I also observed that even when JavaScript was specified the copy buttons for the code snippets still copied TypeScript code and the icon in the top right corner of the code snippet box remains ts.

My system is Windows 10 with VS Code.
Node.js v16.17.0
Chrome Version 118.0.5993.71

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions