Skip to content

error: Uncaught internal server error.Cannot destructure property 'clientId' of 'undefined' as it is undefined. #6856

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

Closed
LilMoke opened this issue Aug 11, 2020 · 6 comments
Labels
state:duplicate Duplicate of already reported issue type:question Support or code-level question

Comments

@LilMoke
Copy link

LilMoke commented Aug 11, 2020

After updating our Parse Server and Android Client to the latest versions we started to experience this error with our Google users. Our update included ParseGoogleUtils.

Here is code that appears to show a bug:

What we are seeing is the task is coming back as isCompleted but the user is null.

ParseUser.logInWithInBackground(AUTH_TYPE, authData)
	.continueWith { task ->
		when {
			task.isCompleted -> {
				var user = task.result
.
.
.

QUESTION:
If the user is null, why is the task completed?

In our searches we found issues #6852 which is a similar error. Because of that post we looked at the server log and see the same error:

error: Uncaught internal server error.Cannot destructure property 'clientId' of 'undefined' as it is undefined.

The other posts do not really give a solution of a way to resolve the issue. It seems like but turns into a doc discussion or something.

Can someone please explain what has changed and what we need to do?

Thanks for any help.

@dplewis
Copy link
Member

dplewis commented Aug 11, 2020

Duplicate: #6852

@mtrezza mtrezza added state:duplicate Duplicate of already reported issue troubleshooting labels Aug 11, 2020
@mtrezza
Copy link
Member

mtrezza commented Aug 11, 2020

Thank you for reporting. I'm closing this as it seems to be a duplicate of #6852, let's continue the discussion there.
Feel free to comment if you think this is not a duplicate and we can re-open this issue.

@mtrezza mtrezza closed this as completed Aug 11, 2020
@LilMoke
Copy link
Author

LilMoke commented Aug 11, 2020

mtrezza, I believe it is a duplicate but the former has no resolution and I was not sure how to re-open it.

@SebC99
Copy link
Contributor

SebC99 commented Aug 11, 2020

@LilMoke Just add an empty object {} as google configuration block in auth configuration in Parse Server options

@LilMoke
Copy link
Author

LilMoke commented Aug 11, 2020

So in my app where I initialize parse I initialize the google adapter like so: ParseGoogleUtils.initialize(googleClientId) and this is how I call log in: ParseGoogleUtils.logIn(activity, LogInCallback { parseUser, err ->

So where exactly do I put that empty auth object

@LilMoke
Copy link
Author

LilMoke commented Aug 11, 2020

Hang on, you said parse server, I looked at our parser server config and I do not have anything google in there. Am I supposed to do something in let api = new ParseServer({

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:duplicate Duplicate of already reported issue type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

4 participants