Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample Chat Not Working for MongoDB #283

Open
SteveSande opened this issue Oct 16, 2023 · 1 comment
Open

Sample Chat Not Working for MongoDB #283

SteveSande opened this issue Oct 16, 2023 · 1 comment

Comments

@SteveSande
Copy link

SteveSande commented Oct 16, 2023

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

@NickAguilar93
Copy link

This issue occurs using the mongoDB version of the setup when the user does not have a publicly facing email address for the API to read. If you set a publicly visible email on your GitHub account, this error no longer occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants