-
Notifications
You must be signed in to change notification settings - Fork 103
Server error #4
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
Comments
|
I am facing the same problem.
Since mongoose returns a mongoose Object it is not modifiable. I think .findOne(options).lean().then should be used. But since I am basically a OAuth2.0 noob I can be totally wrong. |
Same problem here! |
You are on the right track. The error happens when grant object was not found or returned when the oauthClients collection is queried. Confirm your model contains a grants array similar to this:
|
Hey guys! Have you encountered this error? I already updated my repo and mySQL db also but got this error. |
Hi, I'm getting the same error with MongoDB implementation:
Any idea? I have double checked and the user exists in db collection. |
Still waiting a feedback from the author, and i am not sure if the source code fully committed maybe they still working on it. Any updates on this? |
You can check the above commit as of now. |
Hi manjeshpv, when i check the code, is this fix only uses mongodb? How about mySQL it's work when i invoked the end-point. Please verify thanks. |
I appreciated your fixes in mongoDB it seems to work, but hopefully there were also a fix for mySQL database. The output when i used mongodb else got error on mySQL: |
Just want to share. I have a simple fixed on uses mysql db, just simply copy the implementation code in mongo models and it works! But no guarantee this fix the issue :(. Possible other function will not work. Thank you manjeshpv. |
please update error with mysql, and clone repo fresh again |
Jorger, please tried to add client_id and user_id foreign key value one of the table manually. Because, the oauth_demo.sql script has missing id's reference to the client and user. The create sequelize associated with that table seem not working in mysql db not sure if the issue from the associated tables. I am not familiar yet in sequelize need to learn more. |
Also the issue can be you must have not set seedMongoDB: true or seedDB: true in the config.js file, depending on which database you are using. I did that and issue got resolved. |
I have the same issue Server error: missing client |
{ |
{"message":"Server error: missing client
grants
","code":503,"name":"server_error"}The text was updated successfully, but these errors were encountered: